diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml deleted file mode 100644 index 3d2f8282..00000000 --- a/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,3 +0,0 @@ -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml deleted file mode 100644 index a646e737..00000000 --- a/.github/.OwlBot.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -docker: - image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" - -deep-remove-regex: -- "/grpc-google-.*/src" -- "/proto-google-.*/src" -- "/google-.*/src" - -deep-copy-regex: -- source: "/google/analytics/data/(v.*)/.*-java/proto-google-.*/src" - dest: "/owl-bot-staging/$1/proto-google-analytics-data-$1/src" -- source: "/google/analytics/data/(v.*)/.*-java/grpc-google-.*/src" - dest: "/owl-bot-staging/$1/grpc-google-analytics-data-$1/src" -- source: "/google/analytics/data/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/$1/google-analytics-data/src" diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 4f568975..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,12 +0,0 @@ -# Code owners file. -# This file controls who is tagged for review for any given pull request. - -# For syntax help see: -# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax - -# The @googleapis/analytics-dpe is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/analytics-dpe -**/*.java @googleapis/analytics-dpe - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 66bcd3a5..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-analytics-data/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. analytics-data version(s): - -#### Steps to reproduce - - 1. ? - 2. ? - -#### Code example - -```java -// example -``` - -#### Stack trace -``` -Any relevant stacktrace here. -``` - -#### External references such as API reference guides - -- ? - -#### Any additional information below - - -Following these steps guarantees the quickest resolution possible. - -Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 754e30c6..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 99586903..00000000 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 4fda4435..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-analytics-data/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea -- [ ] Ensure the tests and linter pass -- [ ] Code coverage does not decrease (if any source code was changed) -- [ ] Appropriate docs were updated (if necessary) - -Fixes # ☕️ diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 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/release-trigger.yml b/.github/release-trigger.yml index d4ca9418..bf465679 100644 --- a/.github/release-trigger.yml +++ b/.github/release-trigger.yml @@ -1 +1,2 @@ enabled: true +multiScmName: java-analytics-data 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 8c84835d..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 - - 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 - - team: analytics-dpe - 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 7513acae..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,54 +0,0 @@ -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v3 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml deleted file mode 100644 index 9b4fd4d8..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,88 +0,0 @@ -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v3 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 05de1f60..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,72 +0,0 @@ -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@v2 - - uses: actions/setup-java@v2 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 - 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@v2 - - uses: actions/setup-java@v2 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 - 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@v2 - - uses: actions/setup-java@v2 - 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 c46230a7..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,14 +0,0 @@ -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 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 05826ad9..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,3 +0,0 @@ -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh deleted file mode 100755 index 20db30e6..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,129 +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 -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -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 -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 -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-analytics-data -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 2e574954..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-analytics-data/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-data/.kokoro/build.sh" -} diff --git a/.kokoro/common.sh b/.kokoro/common.sh deleted file mode 100644 index ace89f45..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index 499bd7ae..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-analytics-data/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-data/.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 d7476cfe..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,110 +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 - -echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" -## Run dependency list completeness check -function completenessCheck() { - # Output dep list with compile scope generated using the original pom - # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. - # This is stripped from the output as it is not present in the flattened pom. - # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. - msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt - - # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) - msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt - - # Compare two dependency lists - msg "Comparing dependency lists..." - diff .org-list.txt .new-list.txt >.diff.txt - if [[ $? == 0 ]] - then - msg "Success. No diff!" - else - msg "Diff found. See below: " - msg "You can also check .diff.txt file located in $1." - cat .diff.txt - return 1 - fi -} - -# Allow failures to continue running the script -set +e - -error_count=0 -for path in **/.flattened-pom.xml -do - # Check flattened pom in each dir that contains it for completeness - dir=$(dirname "$path") - pushd "$dir" - completenessCheck "$dir" - error_count=$(($error_count + $?)) - popd -done - -if [[ $error_count == 0 ]] -then - msg "All checks passed." - exit 0 -else - msg "Errors found. See log statements above." - exit 1 -fi diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index 499bd7ae..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-analytics-data/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-data/.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 e51c7b4c..00000000 --- a/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "true" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} 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 d4904440..00000000 --- a/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-data/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index c6b498d2..00000000 --- a/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-data/.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 9761fd86..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: "true" -} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh deleted file mode 100755 index f5251425..00000000 --- a/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442..00000000 --- a/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg deleted file mode 100644 index 49ac0413..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-analytics-data/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-data/.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 21f3b769..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-analytics-data/.kokoro/dependencies.sh" -} 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 d4904440..00000000 --- a/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-data/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index c6b498d2..00000000 --- a/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-data/.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 0cc0e474..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-analytics-data/.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 77ec3844..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-analytics-data - -# 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-analytics-data \ - --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 fcbc1ff2..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-analytics-data/.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-analytics-data/.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 c03382c1..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-analytics-data/.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 805a0365..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-analytics-data/.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 29ab2a49..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-analytics-data/.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 a0171773..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-analytics-data/.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 e90f0e3f..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 gcp-docuploader - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-analytics-data -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 5aba9b24..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-analytics-data/.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 c131f1b4..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 gcp-docuploader - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-analytics-data -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 68f715ca..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-analytics-data/.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 f1f4644e..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-analytics-data/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-analytics-data/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-analytics-data" - } -} - -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 77dc4e8f..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,45 +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 -python3 -m pip install gcp-releasetool -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi \ No newline at end of file diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 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 163d8bb5..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "analytics-data", - "name_pretty": "Analytics Data", - "product_documentation": "https://developers.google.com/analytics/trusted-testing/analytics-data", - "api_description": "provides programmatic methods to access report data in Google Analytics App+Web properties.", - "client_documentation": "https://googleapis.dev/java/google-analytics-data/latest/index.html", - "release_level": "alpha", - "transport": "grpc", - "language": "java", - "repo": "googleapis/java-analytics-data", - "repo_short": "java-analytics-data", - "distribution_name": "com.google.analytics:google-analytics-data", - "api_id": "analytics-data.googleapis.com", - "requires_billing": true, - "codeowner_team": "@googleapis/analytics-dpe", - "library_type": "GAPIC_AUTO" -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 80e93bd6..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,262 +0,0 @@ -# Changelog - -### [0.10.2](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.1...v0.10.2) (2021-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#353](https://www.github.com/googleapis/java-analytics-data/issues/353)) ([45294d9](https://www.github.com/googleapis/java-analytics-data/commit/45294d9183e0cd646d3ab7de68049fd1f0f1d4a6)) - -### [0.10.1](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.0...v0.10.1) (2021-09-22) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#338](https://www.github.com/googleapis/java-analytics-data/issues/338)) ([9d17e92](https://www.github.com/googleapis/java-analytics-data/commit/9d17e92ffcf46cfeb18b52475c1b70f5b9385c4b)) - -## [0.10.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.9.2...v0.10.0) (2021-09-14) - - -### Features - -* Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-analytics-data/issues/1196)) ([#319](https://www.github.com/googleapis/java-analytics-data/issues/319)) ([a9738c2](https://www.github.com/googleapis/java-analytics-data/commit/a9738c250bc6fe00b647d0b62ad001a3f9e04fa1)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#322](https://www.github.com/googleapis/java-analytics-data/issues/322)) ([a274776](https://www.github.com/googleapis/java-analytics-data/commit/a27477683a4dedb04b4189b0ddeda54d1f303cb0)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#332](https://www.github.com/googleapis/java-analytics-data/issues/332)) ([f3fc6b7](https://www.github.com/googleapis/java-analytics-data/commit/f3fc6b7613ef41597178d0f964fae7d873bb2e1d)) - -### [0.9.2](https://www.github.com/googleapis/java-analytics-data/compare/v0.9.1...v0.9.2) (2021-08-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#313](https://www.github.com/googleapis/java-analytics-data/issues/313)) ([cff72c2](https://www.github.com/googleapis/java-analytics-data/commit/cff72c267b46faa01382d6e9a649cf6f119ffa30)) - -### [0.9.1](https://www.github.com/googleapis/java-analytics-data/compare/v0.9.0...v0.9.1) (2021-08-12) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#307](https://www.github.com/googleapis/java-analytics-data/issues/307)) ([10a3888](https://www.github.com/googleapis/java-analytics-data/commit/10a3888d7c2b259b84bfa96de15fef3f38ed0bd5)) - -## [0.9.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.8.0...v0.9.0) (2021-08-06) - - -### ⚠ BREAKING CHANGES - -* release gapic-generator-java v2.0.0 (#300) - -### Features - -* add `minute_ranges` field to `RunRealtimeReportRequest` object which can be used to specify the time range (in minutes) for realtime report queries ([#233](https://www.github.com/googleapis/java-analytics-data/issues/233)) ([f99488a](https://www.github.com/googleapis/java-analytics-data/commit/f99488a8630de5cd201ea524027d3cacf0b4b08f)) -* release gapic-generator-java v2.0.0 ([#300](https://www.github.com/googleapis/java-analytics-data/issues/300)) ([3f26958](https://www.github.com/googleapis/java-analytics-data/commit/3f269581a86dece46234a47075c74d8883ebaef3)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#301](https://www.github.com/googleapis/java-analytics-data/issues/301)) ([4172163](https://www.github.com/googleapis/java-analytics-data/commit/4172163883152f300fc69609f0c67b9dc66edae6)) - -## [0.8.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.7.1...v0.8.0) (2021-07-15) - - -### Features - -* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#213](https://www.github.com/googleapis/java-analytics-data/issues/213)) ([4791520](https://www.github.com/googleapis/java-analytics-data/commit/479152031b0f2963191c387a8500d83fddaf6624)) -* add `kind` field which is used to distinguish between response types feat: add `potentially_thresholded_requests_per_hour` field to `PropertyQuota` ([#182](https://www.github.com/googleapis/java-analytics-data/issues/182)) ([8b30dcd](https://www.github.com/googleapis/java-analytics-data/commit/8b30dcd3132fd5a43955dda3f4c4aaddac2d0035)) -* add `potentially_thresholded_requests_per_hour` field to `PropertyQuota` ([c1d3e02](https://www.github.com/googleapis/java-analytics-data/commit/c1d3e02456af734220c88fce4b67e8702583cf1a)) -* add kind field which is used to distinguish between responsetypes ([c1d3e02](https://www.github.com/googleapis/java-analytics-data/commit/c1d3e02456af734220c88fce4b67e8702583cf1a)) - - -### Bug Fixes - -* Add `shopt -s nullglob` to dependencies script ([#1130](https://www.github.com/googleapis/java-analytics-data/issues/1130)) ([#228](https://www.github.com/googleapis/java-analytics-data/issues/228)) ([f4ea7d3](https://www.github.com/googleapis/java-analytics-data/commit/f4ea7d32ba63a60401940968d00e15ac31f7409c)) -* owlbot post-processor should generate README ([#1154](https://www.github.com/googleapis/java-analytics-data/issues/1154)) ([#234](https://www.github.com/googleapis/java-analytics-data/issues/234)) ([89cd9b5](https://www.github.com/googleapis/java-analytics-data/commit/89cd9b51a892cadee81932c3562264c5c6f2a0f8)), closes [#1146](https://www.github.com/googleapis/java-analytics-data/issues/1146) [#1147](https://www.github.com/googleapis/java-analytics-data/issues/1147) -* release scripts from issuing overlapping phases ([#196](https://www.github.com/googleapis/java-analytics-data/issues/196)) ([a17287f](https://www.github.com/googleapis/java-analytics-data/commit/a17287fe5ce6b76f4a55d340c77fba11c9c459b8)) -* typo ([#194](https://www.github.com/googleapis/java-analytics-data/issues/194)) ([e62c6ef](https://www.github.com/googleapis/java-analytics-data/commit/e62c6ef3069442fd32727609215521478a07e8ca)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#197](https://www.github.com/googleapis/java-analytics-data/issues/197)) ([4aba8fa](https://www.github.com/googleapis/java-analytics-data/commit/4aba8fa114b46ca1eefd64f63a5ffe9f1d726dd2)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#201](https://www.github.com/googleapis/java-analytics-data/issues/201)) ([46af6c8](https://www.github.com/googleapis/java-analytics-data/commit/46af6c80d0c838dcec27087e585c83f7eca50eda)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#209](https://www.github.com/googleapis/java-analytics-data/issues/209)) ([f15138c](https://www.github.com/googleapis/java-analytics-data/commit/f15138c30e675f56a47480e76ead95193286669e)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#212](https://www.github.com/googleapis/java-analytics-data/issues/212)) ([f34f92b](https://www.github.com/googleapis/java-analytics-data/commit/f34f92b0869cbd87b7f8909d1a5335e4adbb4851)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#221](https://www.github.com/googleapis/java-analytics-data/issues/221)) ([1edc82e](https://www.github.com/googleapis/java-analytics-data/commit/1edc82e2a151692805472f87c550df7f0321b190)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#229](https://www.github.com/googleapis/java-analytics-data/issues/229)) ([f3e97ab](https://www.github.com/googleapis/java-analytics-data/commit/f3e97ab77a5b09879ade1b49fdac067ede5d6a88)) - -### [0.7.1](https://www.github.com/googleapis/java-analytics-data/compare/v0.7.0...v0.7.1) (2021-04-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#186](https://www.github.com/googleapis/java-analytics-data/issues/186)) ([c7ce3e7](https://www.github.com/googleapis/java-analytics-data/commit/c7ce3e791811a7f6740f7961ccc1831c875d3186)) - -## [0.7.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.6.0...v0.7.0) (2021-03-16) - - -### ⚠ BREAKING CHANGES - -* rename the 'page_size', 'page_token', 'total_size' fields to 'limit', 'offset' and 'row_count' respectively (#170) - -### Features - -* **generator:** update protoc to v3.15.3 ([#163](https://www.github.com/googleapis/java-analytics-data/issues/163)) ([b1852d4](https://www.github.com/googleapis/java-analytics-data/commit/b1852d4c78b4d9aa49d0b8c5bd3b9a5d2cc5fdb6)) - - -### Bug Fixes - -* rename the 'page_size', 'page_token', 'total_size' fields to 'limit', 'offset' and 'row_count' respectively ([#170](https://www.github.com/googleapis/java-analytics-data/issues/170)) ([cfd43f0](https://www.github.com/googleapis/java-analytics-data/commit/cfd43f0a854379ad2161c1af8a709ebfb96196bd)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#171](https://www.github.com/googleapis/java-analytics-data/issues/171)) ([6d06098](https://www.github.com/googleapis/java-analytics-data/commit/6d0609886aca2ae74b3e5d6f840110e93fe95adc)) - -## [0.6.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.5.5...v0.6.0) (2021-02-26) - - -### Features - -* add v1beta client ([#158](https://www.github.com/googleapis/java-analytics-data/issues/158)) ([545cca0](https://www.github.com/googleapis/java-analytics-data/commit/545cca098dd4a054d3110761347cfe3aabc41ccd)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#159](https://www.github.com/googleapis/java-analytics-data/issues/159)) ([009ac70](https://www.github.com/googleapis/java-analytics-data/commit/009ac70ab39adf5b0edad5fe80799dc5a51eb7f8)) - -### [0.5.5](https://www.github.com/googleapis/java-analytics-data/compare/v0.5.4...v0.5.5) (2021-02-22) - - -### Bug Fixes - -* don't log downloads ([#152](https://www.github.com/googleapis/java-analytics-data/issues/152)) ([e173782](https://www.github.com/googleapis/java-analytics-data/commit/e17378207bf50ccd1b5f931481cf1c894908fe25)) - - -### Documentation - -* generate sample code in the Java microgenerator ([#135](https://www.github.com/googleapis/java-analytics-data/issues/135)) ([0470fd1](https://www.github.com/googleapis/java-analytics-data/commit/0470fd12172a87ff90d279775b1931e48ece51d0)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#153](https://www.github.com/googleapis/java-analytics-data/issues/153)) ([535c757](https://www.github.com/googleapis/java-analytics-data/commit/535c757a963f8e771f892244421dfb364a96256f)) - -### [0.5.4](https://www.github.com/googleapis/java-analytics-data/compare/v0.5.3...v0.5.4) (2021-01-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#119](https://www.github.com/googleapis/java-analytics-data/issues/119)) ([9d4fae0](https://www.github.com/googleapis/java-analytics-data/commit/9d4fae0fd65e6533e3cb70cba54fc08d75d8b725)) - -### [0.5.3](https://www.github.com/googleapis/java-analytics-data/compare/v0.5.2...v0.5.3) (2020-12-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#112](https://www.github.com/googleapis/java-analytics-data/issues/112)) ([224e55b](https://www.github.com/googleapis/java-analytics-data/commit/224e55bd24bbe0a946e0859a9b16a3923851a13e)) - -### [0.5.2](https://www.github.com/googleapis/java-analytics-data/compare/v0.5.1...v0.5.2) (2020-12-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([4f26986](https://www.github.com/googleapis/java-analytics-data/commit/4f269863aaa3c4b3ed746474784858dce4bb9a74)) - -### [0.5.1](https://www.github.com/googleapis/java-analytics-data/compare/v0.5.0...v0.5.1) (2020-12-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#100](https://www.github.com/googleapis/java-analytics-data/issues/100)) ([cc53daf](https://www.github.com/googleapis/java-analytics-data/commit/cc53daf914a11481c1848d5d813dfd4a776bc177)) - -## [0.5.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.4.0...v0.5.0) (2020-11-12) - - -### ⚠ BREAKING CHANGES - -* GetUniversalMetadata method removed from the API, GetMetadata method should be used instead feat: reporting requests now support date ranges longer than one year docs: minor documentation updates (#89) - -### Bug Fixes - -* GetUniversalMetadata method removed from the API, GetMetadata method should be used instead feat: reporting requests now support date ranges longer than one year docs: minor documentation updates ([#89](https://www.github.com/googleapis/java-analytics-data/issues/89)) ([e3b69f6](https://www.github.com/googleapis/java-analytics-data/commit/e3b69f6ae443113244cd333e518d6fa79da4488c)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#87](https://www.github.com/googleapis/java-analytics-data/issues/87)) ([04ad0c9](https://www.github.com/googleapis/java-analytics-data/commit/04ad0c9815ec03e00e1c6db120db7a3d049dbfb3)) - -## [0.4.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.3.0...v0.4.0) (2020-11-04) - - -### Features - -* added RunRealtimeReport method that returns a customized report of realtime event data for a GA4 property docs: minor documentation updates ([#80](https://www.github.com/googleapis/java-analytics-data/issues/80)) ([815fe2e](https://www.github.com/googleapis/java-analytics-data/commit/815fe2ed8456feef0d972f5610cf4ae73657a9fe)) - - -### Documentation - -* App+Web properties renamed to GA4 ([#78](https://www.github.com/googleapis/java-analytics-data/issues/78)) ([6a49d40](https://www.github.com/googleapis/java-analytics-data/commit/6a49d40411b4b51ba74e2632e736f239d933c6e5)) - -## [0.3.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.2.1...v0.3.0) (2020-10-31) - - -### Features - -* added GetMetadata method for metadata including custom dimensions and metrics. ([#65](https://www.github.com/googleapis/java-analytics-data/issues/65)) ([609457a](https://www.github.com/googleapis/java-analytics-data/commit/609457a68abaf439803bf9f3e147cb27b21e4853)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#74](https://www.github.com/googleapis/java-analytics-data/issues/74)) ([a43d65d](https://www.github.com/googleapis/java-analytics-data/commit/a43d65dad4f7adb7c39e7110a9f8d1c181b2ea14)) - -### [0.2.1](https://www.github.com/googleapis/java-analytics-data/compare/v0.2.0...v0.2.1) (2020-10-22) - - -### Documentation - -* added a sample ([#53](https://www.github.com/googleapis/java-analytics-data/issues/53)) ([e3b5d97](https://www.github.com/googleapis/java-analytics-data/commit/e3b5d976993df0f254a72d16babe83ba76de9d46)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#59](https://www.github.com/googleapis/java-analytics-data/issues/59)) ([2cb6de2](https://www.github.com/googleapis/java-analytics-data/commit/2cb6de2b56dd51758358d04b036c7f1b24b5d2dc)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#62](https://www.github.com/googleapis/java-analytics-data/issues/62)) ([8f2101e](https://www.github.com/googleapis/java-analytics-data/commit/8f2101e13f35b01abfd283b065d19163c3a58c24)) - -## [0.2.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.1.1...v0.2.0) (2020-10-12) - - -### ⚠ BREAKING CHANGES - -* DimensionHeader renamed to PivotDimensionHeader - -### Features - -* GetMetadata method renamed to GetUniversalMetdata docs: documentation updates ([#40](https://www.github.com/googleapis/java-analytics-data/issues/40)) ([7931f8f](https://www.github.com/googleapis/java-analytics-data/commit/7931f8ff01dad7b0d3bf5dec334b40ff4b372e5b)) -* rename DimensionHeader to PivotDimensionHeader, add TYPE_SECONDS, TYPE_CURRENCY to MetricType ([#21](https://www.github.com/googleapis/java-analytics-data/issues/21)) ([fcdd02a](https://www.github.com/googleapis/java-analytics-data/commit/fcdd02a90e80a35801195c8f193d7d280ed21276)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#33](https://www.github.com/googleapis/java-analytics-data/issues/33)) ([a209bdc](https://www.github.com/googleapis/java-analytics-data/commit/a209bdc956ddd5f6805717dd4915d870a21bac13)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#41](https://www.github.com/googleapis/java-analytics-data/issues/41)) ([38ec38f](https://www.github.com/googleapis/java-analytics-data/commit/38ec38f03eed5f34f42087e023eaa306546ae4f6)) - -### [0.1.1](https://www.github.com/googleapis/java-analytics-data/compare/v0.1.0...v0.1.1) (2020-09-21) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#15](https://www.github.com/googleapis/java-analytics-data/issues/15)) ([8b8ff79](https://www.github.com/googleapis/java-analytics-data/commit/8b8ff792dc4a683f5dd76a8567e22d0a58c6c485)) - -## 0.1.0 (2020-08-28) - - -### Features - -* initial code generation ([0ac2ab2](https://www.github.com/googleapis/java-analytics-data/commit/0ac2ab28087be281328851ed06460c024ed19e5a)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#5](https://www.github.com/googleapis/java-analytics-data/issues/5)) ([a3ac1b3](https://www.github.com/googleapis/java-analytics-data/commit/a3ac1b37621e5ee1e1c9580ab29905a603a8587d)) diff --git a/README.md b/README.md index 2535de07..b272627f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,13 @@ Java idiomatic client for [Analytics Data][product-docs]. > make backwards-incompatible changes. +:bus: In October 2022, this library has moved to +[google-cloud-java/java-analytics-data]( +https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data). +This repository will be archived in the future. +Future releases will appear in the new repository (https://github.com/googleapis/google-cloud-java/releases). +The Maven artifact coordinates (`com.google.analytics:google-analytics-data`) remain the same. + ## Quickstart @@ -22,20 +29,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.10.2 + 0.16.0 ``` -If you are using Gradle without BOM, add this to your dependencies +If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.10.2' +implementation 'com.google.analytics:google-analytics-data:0.16.0' ``` -If you are using SBT, add this to your dependencies +If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.10.2" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.16.0" ``` ## Authentication @@ -79,8 +86,30 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Get Common Metadata Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java) | +| Get Metadata By Property Id Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java) | | Quickstart Json Credentials Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java) | | Quickstart Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java) | +| Run Batch Report Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java) | +| Run Pivot Report Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java) | +| Run Realtime Report Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java) | +| Run Realtime Report With Multiple Dimensions Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java) | +| Run Realtime Report With Multiple Metrics Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java) | +| Run Report Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportSample.java) | +| Run Report With Aggregations Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java) | +| Run Report With Cohorts Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java) | +| Run Report With Date Ranges Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java) | +| Run Report With Dimension And Metric Filters Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java) | +| Run Report With Dimension Exclude Filter Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java) | +| Run Report With Dimension Filter Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java) | +| Run Report With Dimension In List Filter Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java) | +| Run Report With Multiple Dimension Filters Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java) | +| Run Report With Multiple Dimensions Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java) | +| Run Report With Multiple Metrics Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java) | +| Run Report With Named Date Ranges Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java) | +| Run Report With Ordering Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java) | +| Run Report With Pagination Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java) | +| Run Report With Property Quota Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java) | @@ -185,7 +214,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-data/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-data/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-data/java11.html -[stability-image]: https://img.shields.io/badge/stability-alpha-orange +[stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.analytics%20AND%20a:google-analytics-data&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication 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-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml deleted file mode 100644 index 01c80807..00000000 --- a/google-analytics-data-bom/pom.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data-bom - 0.10.3-SNAPSHOT - pom - - com.google.cloud - google-cloud-shared-config - 1.2.2 - - - Google Analytics Data BOM - https://github.com/googleapis/java-analytics-data - - BOM for Analytics Data - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-analytics-data.git - scm:git:git@github.com:googleapis/java-analytics-data.git - https://github.com/googleapis/java-analytics-data - - - - true - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - com.google.analytics - google-analytics-data - 0.10.3-SNAPSHOT - - - com.google.api.grpc - grpc-google-analytics-data-v1beta - 0.10.3-SNAPSHOT - - - com.google.api.grpc - proto-google-analytics-data-v1beta - 0.10.3-SNAPSHOT - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - diff --git a/google-analytics-data/clirr-ignored-differences.xml b/google-analytics-data/clirr-ignored-differences.xml deleted file mode 100644 index 163361e7..00000000 --- a/google-analytics-data/clirr-ignored-differences.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - 8001 - com/google/analytics/data/v1alpha/** - - diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml deleted file mode 100644 index 4608a5ba..00000000 --- a/google-analytics-data/pom.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data - 0.10.3-SNAPSHOT - jar - Google Analytics Data - https://github.com/googleapis/java-analytics-data - provides programmatic methods to access report data in Google Analytics App+Web properties. - - com.google.analytics - google-analytics-data-parent - 0.10.3-SNAPSHOT - - - google-analytics-data - - - - 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-analytics-data-v1beta - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - org.threeten - threetenbp - - - - - junit - junit - test - 4.13.2 - - - - com.google.api.grpc - grpc-google-analytics-data-v1beta - test - - - - com.google.api - gax-grpc - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java deleted file mode 100644 index 6bc3ea3f..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java +++ /dev/null @@ -1,709 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta; - -import com.google.analytics.data.v1beta.stub.BetaAnalyticsDataStub; -import com.google.analytics.data.v1beta.stub.BetaAnalyticsDataStubSettings; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Google Analytics reporting data service. - * - *

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

{@code
- * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
- *   RunReportRequest request =
- *       RunReportRequest.newBuilder()
- *           .setProperty("property-993141291")
- *           .addAllDimensions(new ArrayList())
- *           .addAllMetrics(new ArrayList())
- *           .addAllDateRanges(new ArrayList())
- *           .setDimensionFilter(FilterExpression.newBuilder().build())
- *           .setMetricFilter(FilterExpression.newBuilder().build())
- *           .setOffset(-1019779949)
- *           .setLimit(102976443)
- *           .addAllMetricAggregations(new ArrayList())
- *           .addAllOrderBys(new ArrayList())
- *           .setCurrencyCode("currencyCode1004773790")
- *           .setCohortSpec(CohortSpec.newBuilder().build())
- *           .setKeepEmptyRows(true)
- *           .setReturnPropertyQuota(true)
- *           .build();
- *   RunReportResponse response = betaAnalyticsDataClient.runReport(request);
- * }
- * }
- * - *

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

To customize credentials: - * - *

{@code
- * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
- *     BetaAnalyticsDataSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * BetaAnalyticsDataClient betaAnalyticsDataClient =
- *     BetaAnalyticsDataClient.create(betaAnalyticsDataSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
- *     BetaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
- * BetaAnalyticsDataClient betaAnalyticsDataClient =
- *     BetaAnalyticsDataClient.create(betaAnalyticsDataSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class BetaAnalyticsDataClient implements BackgroundResource { - private final BetaAnalyticsDataSettings settings; - private final BetaAnalyticsDataStub stub; - - /** Constructs an instance of BetaAnalyticsDataClient with default settings. */ - public static final BetaAnalyticsDataClient create() throws IOException { - return create(BetaAnalyticsDataSettings.newBuilder().build()); - } - - /** - * Constructs an instance of BetaAnalyticsDataClient, 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 BetaAnalyticsDataClient create(BetaAnalyticsDataSettings settings) - throws IOException { - return new BetaAnalyticsDataClient(settings); - } - - /** - * Constructs an instance of BetaAnalyticsDataClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(BetaAnalyticsDataSettings). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final BetaAnalyticsDataClient create(BetaAnalyticsDataStub stub) { - return new BetaAnalyticsDataClient(stub); - } - - /** - * Constructs an instance of BetaAnalyticsDataClient, 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 BetaAnalyticsDataClient(BetaAnalyticsDataSettings settings) throws IOException { - this.settings = settings; - this.stub = ((BetaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected BetaAnalyticsDataClient(BetaAnalyticsDataStub stub) { - this.settings = null; - this.stub = stub; - } - - public final BetaAnalyticsDataSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public BetaAnalyticsDataStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized report of your Google Analytics event data. Reports contain statistics - * derived from data collected by the Google Analytics tracking code. The data returned from the - * API is as a table with columns for the requested dimensions and metrics. Metrics are individual - * measurements of user activity on your property, such as active users or event count. Dimensions - * break down metrics across some common criteria, such as country or event name. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   RunReportRequest request =
-   *       RunReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   RunReportResponse response = betaAnalyticsDataClient.runReport(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 RunReportResponse runReport(RunReportRequest request) { - return runReportCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized report of your Google Analytics event data. Reports contain statistics - * derived from data collected by the Google Analytics tracking code. The data returned from the - * API is as a table with columns for the requested dimensions and metrics. Metrics are individual - * measurements of user activity on your property, such as active users or event count. Dimensions - * break down metrics across some common criteria, such as country or event name. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   RunReportRequest request =
-   *       RunReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.runReportCallable().futureCall(request);
-   *   // Do something.
-   *   RunReportResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable runReportCallable() { - return stub.runReportCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized pivot report of your Google Analytics event data. Pivot reports are more - * advanced and expressive formats than regular reports. In a pivot report, dimensions are only - * visible if they are included in a pivot. Multiple pivots can be specified to further dissect - * your data. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   RunPivotReportRequest request =
-   *       RunPivotReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .addAllPivots(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   RunPivotReportResponse response = betaAnalyticsDataClient.runPivotReport(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 RunPivotReportResponse runPivotReport(RunPivotReportRequest request) { - return runPivotReportCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized pivot report of your Google Analytics event data. Pivot reports are more - * advanced and expressive formats than regular reports. In a pivot report, dimensions are only - * visible if they are included in a pivot. Multiple pivots can be specified to further dissect - * your data. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   RunPivotReportRequest request =
-   *       RunPivotReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .addAllPivots(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.runPivotReportCallable().futureCall(request);
-   *   // Do something.
-   *   RunPivotReportResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - runPivotReportCallable() { - return stub.runPivotReportCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns multiple reports in a batch. All reports must be for the same GA4 Property. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   BatchRunReportsRequest request =
-   *       BatchRunReportsRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   BatchRunReportsResponse response = betaAnalyticsDataClient.batchRunReports(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 BatchRunReportsResponse batchRunReports(BatchRunReportsRequest request) { - return batchRunReportsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns multiple reports in a batch. All reports must be for the same GA4 Property. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   BatchRunReportsRequest request =
-   *       BatchRunReportsRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.batchRunReportsCallable().futureCall(request);
-   *   // Do something.
-   *   BatchRunReportsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchRunReportsCallable() { - return stub.batchRunReportsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns multiple pivot reports in a batch. All reports must be for the same GA4 Property. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   BatchRunPivotReportsRequest request =
-   *       BatchRunPivotReportsRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   BatchRunPivotReportsResponse response = betaAnalyticsDataClient.batchRunPivotReports(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 BatchRunPivotReportsResponse batchRunPivotReports( - BatchRunPivotReportsRequest request) { - return batchRunPivotReportsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns multiple pivot reports in a batch. All reports must be for the same GA4 Property. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   BatchRunPivotReportsRequest request =
-   *       BatchRunPivotReportsRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.batchRunPivotReportsCallable().futureCall(request);
-   *   // Do something.
-   *   BatchRunPivotReportsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchRunPivotReportsCallable() { - return stub.batchRunPivotReportsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - *

For example if a custom metric with parameter name `levels_unlocked` is registered to a - * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata - * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   MetadataName name = MetadataName.of("[PROPERTY]");
-   *   Metadata response = betaAnalyticsDataClient.getMetadata(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric Google Analytics - * GA4 Property identifier. To learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - *

Example: properties/1234/metadata - *

Set the Property ID to 0 for dimensions and metrics common to all properties. In this - * special mode, this method will not return custom dimensions and metrics. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Metadata getMetadata(MetadataName name) { - GetMetadataRequest request = - GetMetadataRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getMetadata(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - *

For example if a custom metric with parameter name `levels_unlocked` is registered to a - * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata - * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   String name = MetadataName.of("[PROPERTY]").toString();
-   *   Metadata response = betaAnalyticsDataClient.getMetadata(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric Google Analytics - * GA4 Property identifier. To learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - *

Example: properties/1234/metadata - *

Set the Property ID to 0 for dimensions and metrics common to all properties. In this - * special mode, this method will not return custom dimensions and metrics. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Metadata getMetadata(String name) { - GetMetadataRequest request = GetMetadataRequest.newBuilder().setName(name).build(); - return getMetadata(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - *

For example if a custom metric with parameter name `levels_unlocked` is registered to a - * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata - * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   GetMetadataRequest request =
-   *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
-   *   Metadata response = betaAnalyticsDataClient.getMetadata(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 Metadata getMetadata(GetMetadataRequest request) { - return getMetadataCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - *

For example if a custom metric with parameter name `levels_unlocked` is registered to a - * property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata - * are dimensions and metrics applicable to any property such as `country` and `totalUsers`. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   GetMetadataRequest request =
-   *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.getMetadataCallable().futureCall(request);
-   *   // Do something.
-   *   Metadata response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getMetadataCallable() { - return stub.getMetadataCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * The Google Analytics Realtime API returns a customized report of realtime event data for your - * property. These reports show events and usage from the last 30 minutes. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   RunRealtimeReportRequest request =
-   *       RunRealtimeReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setLimit(102976443)
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setReturnPropertyQuota(true)
-   *           .addAllMinuteRanges(new ArrayList())
-   *           .build();
-   *   RunRealtimeReportResponse response = betaAnalyticsDataClient.runRealtimeReport(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 RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportRequest request) { - return runRealtimeReportCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * The Google Analytics Realtime API returns a customized report of realtime event data for your - * property. These reports show events and usage from the last 30 minutes. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   RunRealtimeReportRequest request =
-   *       RunRealtimeReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setLimit(102976443)
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setReturnPropertyQuota(true)
-   *           .addAllMinuteRanges(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.runRealtimeReportCallable().futureCall(request);
-   *   // Do something.
-   *   RunRealtimeReportResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - runRealtimeReportCallable() { - return stub.runRealtimeReportCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * This compatibility method lists dimensions and metrics that can be added to a report request - * and maintain compatibility. This method fails if the request's dimensions and metrics are - * incompatible. - * - *

In Google Analytics, reports fail if they request incompatible dimensions and/or metrics; in - * that case, you will need to remove dimensions and/or metrics from the incompatible report until - * the report is compatible. - * - *

The Realtime and Core reports have different compatibility rules. This method checks - * compatibility for Core reports. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   CheckCompatibilityRequest request =
-   *       CheckCompatibilityRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setCompatibilityFilter(Compatibility.forNumber(0))
-   *           .build();
-   *   CheckCompatibilityResponse response = betaAnalyticsDataClient.checkCompatibility(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 CheckCompatibilityResponse checkCompatibility(CheckCompatibilityRequest request) { - return checkCompatibilityCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * This compatibility method lists dimensions and metrics that can be added to a report request - * and maintain compatibility. This method fails if the request's dimensions and metrics are - * incompatible. - * - *

In Google Analytics, reports fail if they request incompatible dimensions and/or metrics; in - * that case, you will need to remove dimensions and/or metrics from the incompatible report until - * the report is compatible. - * - *

The Realtime and Core reports have different compatibility rules. This method checks - * compatibility for Core reports. - * - *

Sample code: - * - *

{@code
-   * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
-   *   CheckCompatibilityRequest request =
-   *       CheckCompatibilityRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .setCompatibilityFilter(Compatibility.forNumber(0))
-   *           .build();
-   *   ApiFuture future =
-   *       betaAnalyticsDataClient.checkCompatibilityCallable().futureCall(request);
-   *   // Do something.
-   *   CheckCompatibilityResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - checkCompatibilityCallable() { - return stub.checkCompatibilityCallable(); - } - - @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); - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java deleted file mode 100644 index 1b53659a..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta; - -import com.google.analytics.data.v1beta.stub.BetaAnalyticsDataStubSettings; -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -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 BetaAnalyticsDataClient}. - * - *

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

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

{@code
- * BetaAnalyticsDataSettings.Builder betaAnalyticsDataSettingsBuilder =
- *     BetaAnalyticsDataSettings.newBuilder();
- * betaAnalyticsDataSettingsBuilder
- *     .runReportSettings()
- *     .setRetrySettings(
- *         betaAnalyticsDataSettingsBuilder
- *             .runReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * BetaAnalyticsDataSettings betaAnalyticsDataSettings = betaAnalyticsDataSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class BetaAnalyticsDataSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to runReport. */ - public UnaryCallSettings runReportSettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).runReportSettings(); - } - - /** Returns the object with the settings used for calls to runPivotReport. */ - public UnaryCallSettings runPivotReportSettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).runPivotReportSettings(); - } - - /** Returns the object with the settings used for calls to batchRunReports. */ - public UnaryCallSettings - batchRunReportsSettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).batchRunReportsSettings(); - } - - /** Returns the object with the settings used for calls to batchRunPivotReports. */ - public UnaryCallSettings - batchRunPivotReportsSettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).batchRunPivotReportsSettings(); - } - - /** Returns the object with the settings used for calls to getMetadata. */ - public UnaryCallSettings getMetadataSettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).getMetadataSettings(); - } - - /** Returns the object with the settings used for calls to runRealtimeReport. */ - public UnaryCallSettings - runRealtimeReportSettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).runRealtimeReportSettings(); - } - - /** Returns the object with the settings used for calls to checkCompatibility. */ - public UnaryCallSettings - checkCompatibilitySettings() { - return ((BetaAnalyticsDataStubSettings) getStubSettings()).checkCompatibilitySettings(); - } - - public static final BetaAnalyticsDataSettings create(BetaAnalyticsDataStubSettings stub) - throws IOException { - return new BetaAnalyticsDataSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return BetaAnalyticsDataStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return BetaAnalyticsDataStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return BetaAnalyticsDataStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected BetaAnalyticsDataSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for BetaAnalyticsDataSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(BetaAnalyticsDataStubSettings.newBuilder(clientContext)); - } - - protected Builder(BetaAnalyticsDataSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(BetaAnalyticsDataStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(BetaAnalyticsDataStubSettings.newBuilder()); - } - - public BetaAnalyticsDataStubSettings.Builder getStubSettingsBuilder() { - return ((BetaAnalyticsDataStubSettings.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 runReport. */ - public UnaryCallSettings.Builder runReportSettings() { - return getStubSettingsBuilder().runReportSettings(); - } - - /** Returns the builder for the settings used for calls to runPivotReport. */ - public UnaryCallSettings.Builder - runPivotReportSettings() { - return getStubSettingsBuilder().runPivotReportSettings(); - } - - /** Returns the builder for the settings used for calls to batchRunReports. */ - public UnaryCallSettings.Builder - batchRunReportsSettings() { - return getStubSettingsBuilder().batchRunReportsSettings(); - } - - /** Returns the builder for the settings used for calls to batchRunPivotReports. */ - public UnaryCallSettings.Builder - batchRunPivotReportsSettings() { - return getStubSettingsBuilder().batchRunPivotReportsSettings(); - } - - /** Returns the builder for the settings used for calls to getMetadata. */ - public UnaryCallSettings.Builder getMetadataSettings() { - return getStubSettingsBuilder().getMetadataSettings(); - } - - /** Returns the builder for the settings used for calls to runRealtimeReport. */ - public UnaryCallSettings.Builder - runRealtimeReportSettings() { - return getStubSettingsBuilder().runRealtimeReportSettings(); - } - - /** Returns the builder for the settings used for calls to checkCompatibility. */ - public UnaryCallSettings.Builder - checkCompatibilitySettings() { - return getStubSettingsBuilder().checkCompatibilitySettings(); - } - - @Override - public BetaAnalyticsDataSettings build() throws IOException { - return new BetaAnalyticsDataSettings(this); - } - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/gapic_metadata.json b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/gapic_metadata.json deleted file mode 100644 index 2ef60309..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/gapic_metadata.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.analytics.data.v1beta", - "libraryPackage": "com.google.analytics.data.v1beta", - "services": { - "BetaAnalyticsData": { - "clients": { - "grpc": { - "libraryClient": "BetaAnalyticsDataClient", - "rpcs": { - "BatchRunPivotReports": { - "methods": ["batchRunPivotReports", "batchRunPivotReportsCallable"] - }, - "BatchRunReports": { - "methods": ["batchRunReports", "batchRunReportsCallable"] - }, - "CheckCompatibility": { - "methods": ["checkCompatibility", "checkCompatibilityCallable"] - }, - "GetMetadata": { - "methods": ["getMetadata", "getMetadata", "getMetadata", "getMetadataCallable"] - }, - "RunPivotReport": { - "methods": ["runPivotReport", "runPivotReportCallable"] - }, - "RunRealtimeReport": { - "methods": ["runRealtimeReport", "runRealtimeReportCallable"] - }, - "RunReport": { - "methods": ["runReport", "runReportCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/package-info.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/package-info.java deleted file mode 100644 index 44439dd3..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/package-info.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * The interfaces provided are listed below, along with usage samples. - * - *

======================= BetaAnalyticsDataClient ======================= - * - *

Service Description: Google Analytics reporting data service. - * - *

Sample for BetaAnalyticsDataClient: - * - *

{@code
- * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
- *   RunReportRequest request =
- *       RunReportRequest.newBuilder()
- *           .setProperty("property-993141291")
- *           .addAllDimensions(new ArrayList())
- *           .addAllMetrics(new ArrayList())
- *           .addAllDateRanges(new ArrayList())
- *           .setDimensionFilter(FilterExpression.newBuilder().build())
- *           .setMetricFilter(FilterExpression.newBuilder().build())
- *           .setOffset(-1019779949)
- *           .setLimit(102976443)
- *           .addAllMetricAggregations(new ArrayList())
- *           .addAllOrderBys(new ArrayList())
- *           .setCurrencyCode("currencyCode1004773790")
- *           .setCohortSpec(CohortSpec.newBuilder().build())
- *           .setKeepEmptyRows(true)
- *           .setReturnPropertyQuota(true)
- *           .build();
- *   RunReportResponse response = betaAnalyticsDataClient.runReport(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.analytics.data.v1beta; - -import javax.annotation.Generated; diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java deleted file mode 100644 index 96b8e57b..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta.stub; - -import com.google.analytics.data.v1beta.BatchRunPivotReportsRequest; -import com.google.analytics.data.v1beta.BatchRunPivotReportsResponse; -import com.google.analytics.data.v1beta.BatchRunReportsRequest; -import com.google.analytics.data.v1beta.BatchRunReportsResponse; -import com.google.analytics.data.v1beta.CheckCompatibilityRequest; -import com.google.analytics.data.v1beta.CheckCompatibilityResponse; -import com.google.analytics.data.v1beta.GetMetadataRequest; -import com.google.analytics.data.v1beta.Metadata; -import com.google.analytics.data.v1beta.RunPivotReportRequest; -import com.google.analytics.data.v1beta.RunPivotReportResponse; -import com.google.analytics.data.v1beta.RunRealtimeReportRequest; -import com.google.analytics.data.v1beta.RunRealtimeReportResponse; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the BetaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class BetaAnalyticsDataStub implements BackgroundResource { - - public UnaryCallable runReportCallable() { - throw new UnsupportedOperationException("Not implemented: runReportCallable()"); - } - - public UnaryCallable runPivotReportCallable() { - throw new UnsupportedOperationException("Not implemented: runPivotReportCallable()"); - } - - public UnaryCallable batchRunReportsCallable() { - throw new UnsupportedOperationException("Not implemented: batchRunReportsCallable()"); - } - - public UnaryCallable - batchRunPivotReportsCallable() { - throw new UnsupportedOperationException("Not implemented: batchRunPivotReportsCallable()"); - } - - public UnaryCallable getMetadataCallable() { - throw new UnsupportedOperationException("Not implemented: getMetadataCallable()"); - } - - public UnaryCallable - runRealtimeReportCallable() { - throw new UnsupportedOperationException("Not implemented: runRealtimeReportCallable()"); - } - - public UnaryCallable - checkCompatibilityCallable() { - throw new UnsupportedOperationException("Not implemented: checkCompatibilityCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java deleted file mode 100644 index 4606ba3a..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java +++ /dev/null @@ -1,455 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta.stub; - -import com.google.analytics.data.v1beta.BatchRunPivotReportsRequest; -import com.google.analytics.data.v1beta.BatchRunPivotReportsResponse; -import com.google.analytics.data.v1beta.BatchRunReportsRequest; -import com.google.analytics.data.v1beta.BatchRunReportsResponse; -import com.google.analytics.data.v1beta.CheckCompatibilityRequest; -import com.google.analytics.data.v1beta.CheckCompatibilityResponse; -import com.google.analytics.data.v1beta.GetMetadataRequest; -import com.google.analytics.data.v1beta.Metadata; -import com.google.analytics.data.v1beta.RunPivotReportRequest; -import com.google.analytics.data.v1beta.RunPivotReportResponse; -import com.google.analytics.data.v1beta.RunRealtimeReportRequest; -import com.google.analytics.data.v1beta.RunRealtimeReportResponse; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -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.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link BetaAnalyticsDataStub}. - * - *

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

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

{@code
- * BetaAnalyticsDataStubSettings.Builder betaAnalyticsDataSettingsBuilder =
- *     BetaAnalyticsDataStubSettings.newBuilder();
- * betaAnalyticsDataSettingsBuilder
- *     .runReportSettings()
- *     .setRetrySettings(
- *         betaAnalyticsDataSettingsBuilder
- *             .runReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * BetaAnalyticsDataStubSettings betaAnalyticsDataSettings =
- *     betaAnalyticsDataSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class BetaAnalyticsDataStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/analytics") - .add("https://www.googleapis.com/auth/analytics.readonly") - .build(); - - private final UnaryCallSettings runReportSettings; - private final UnaryCallSettings - runPivotReportSettings; - private final UnaryCallSettings - batchRunReportsSettings; - private final UnaryCallSettings - batchRunPivotReportsSettings; - private final UnaryCallSettings getMetadataSettings; - private final UnaryCallSettings - runRealtimeReportSettings; - private final UnaryCallSettings - checkCompatibilitySettings; - - /** Returns the object with the settings used for calls to runReport. */ - public UnaryCallSettings runReportSettings() { - return runReportSettings; - } - - /** Returns the object with the settings used for calls to runPivotReport. */ - public UnaryCallSettings runPivotReportSettings() { - return runPivotReportSettings; - } - - /** Returns the object with the settings used for calls to batchRunReports. */ - public UnaryCallSettings - batchRunReportsSettings() { - return batchRunReportsSettings; - } - - /** Returns the object with the settings used for calls to batchRunPivotReports. */ - public UnaryCallSettings - batchRunPivotReportsSettings() { - return batchRunPivotReportsSettings; - } - - /** Returns the object with the settings used for calls to getMetadata. */ - public UnaryCallSettings getMetadataSettings() { - return getMetadataSettings; - } - - /** Returns the object with the settings used for calls to runRealtimeReport. */ - public UnaryCallSettings - runRealtimeReportSettings() { - return runRealtimeReportSettings; - } - - /** Returns the object with the settings used for calls to checkCompatibility. */ - public UnaryCallSettings - checkCompatibilitySettings() { - return checkCompatibilitySettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public BetaAnalyticsDataStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcBetaAnalyticsDataStub.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 "analyticsdata.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "analyticsdata.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BetaAnalyticsDataStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected BetaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - runReportSettings = settingsBuilder.runReportSettings().build(); - runPivotReportSettings = settingsBuilder.runPivotReportSettings().build(); - batchRunReportsSettings = settingsBuilder.batchRunReportsSettings().build(); - batchRunPivotReportsSettings = settingsBuilder.batchRunPivotReportsSettings().build(); - getMetadataSettings = settingsBuilder.getMetadataSettings().build(); - runRealtimeReportSettings = settingsBuilder.runRealtimeReportSettings().build(); - checkCompatibilitySettings = settingsBuilder.checkCompatibilitySettings().build(); - } - - /** Builder for BetaAnalyticsDataStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder runReportSettings; - private final UnaryCallSettings.Builder - runPivotReportSettings; - private final UnaryCallSettings.Builder - batchRunReportsSettings; - private final UnaryCallSettings.Builder< - BatchRunPivotReportsRequest, BatchRunPivotReportsResponse> - batchRunPivotReportsSettings; - private final UnaryCallSettings.Builder getMetadataSettings; - private final UnaryCallSettings.Builder - runRealtimeReportSettings; - private final UnaryCallSettings.Builder - checkCompatibilitySettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNKNOWN))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - runReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - runPivotReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchRunReportsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchRunPivotReportsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getMetadataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - runRealtimeReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - checkCompatibilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - runReportSettings, - runPivotReportSettings, - batchRunReportsSettings, - batchRunPivotReportsSettings, - getMetadataSettings, - runRealtimeReportSettings, - checkCompatibilitySettings); - initDefaults(this); - } - - protected Builder(BetaAnalyticsDataStubSettings settings) { - super(settings); - - runReportSettings = settings.runReportSettings.toBuilder(); - runPivotReportSettings = settings.runPivotReportSettings.toBuilder(); - batchRunReportsSettings = settings.batchRunReportsSettings.toBuilder(); - batchRunPivotReportsSettings = settings.batchRunPivotReportsSettings.toBuilder(); - getMetadataSettings = settings.getMetadataSettings.toBuilder(); - runRealtimeReportSettings = settings.runRealtimeReportSettings.toBuilder(); - checkCompatibilitySettings = settings.checkCompatibilitySettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - runReportSettings, - runPivotReportSettings, - batchRunReportsSettings, - batchRunPivotReportsSettings, - getMetadataSettings, - runRealtimeReportSettings, - checkCompatibilitySettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .runReportSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .runPivotReportSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchRunReportsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchRunPivotReportsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getMetadataSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .runRealtimeReportSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .checkCompatibilitySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to runReport. */ - public UnaryCallSettings.Builder runReportSettings() { - return runReportSettings; - } - - /** Returns the builder for the settings used for calls to runPivotReport. */ - public UnaryCallSettings.Builder - runPivotReportSettings() { - return runPivotReportSettings; - } - - /** Returns the builder for the settings used for calls to batchRunReports. */ - public UnaryCallSettings.Builder - batchRunReportsSettings() { - return batchRunReportsSettings; - } - - /** Returns the builder for the settings used for calls to batchRunPivotReports. */ - public UnaryCallSettings.Builder - batchRunPivotReportsSettings() { - return batchRunPivotReportsSettings; - } - - /** Returns the builder for the settings used for calls to getMetadata. */ - public UnaryCallSettings.Builder getMetadataSettings() { - return getMetadataSettings; - } - - /** Returns the builder for the settings used for calls to runRealtimeReport. */ - public UnaryCallSettings.Builder - runRealtimeReportSettings() { - return runRealtimeReportSettings; - } - - /** Returns the builder for the settings used for calls to checkCompatibility. */ - public UnaryCallSettings.Builder - checkCompatibilitySettings() { - return checkCompatibilitySettings; - } - - @Override - public BetaAnalyticsDataStubSettings build() throws IOException { - return new BetaAnalyticsDataStubSettings(this); - } - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataCallableFactory.java deleted file mode 100644 index c1606ff0..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta.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 BetaAnalyticsData service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcBetaAnalyticsDataCallableFactory 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-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java deleted file mode 100644 index 5994aba8..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java +++ /dev/null @@ -1,372 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta.stub; - -import com.google.analytics.data.v1beta.BatchRunPivotReportsRequest; -import com.google.analytics.data.v1beta.BatchRunPivotReportsResponse; -import com.google.analytics.data.v1beta.BatchRunReportsRequest; -import com.google.analytics.data.v1beta.BatchRunReportsResponse; -import com.google.analytics.data.v1beta.CheckCompatibilityRequest; -import com.google.analytics.data.v1beta.CheckCompatibilityResponse; -import com.google.analytics.data.v1beta.GetMetadataRequest; -import com.google.analytics.data.v1beta.Metadata; -import com.google.analytics.data.v1beta.RunPivotReportRequest; -import com.google.analytics.data.v1beta.RunPivotReportResponse; -import com.google.analytics.data.v1beta.RunRealtimeReportRequest; -import com.google.analytics.data.v1beta.RunRealtimeReportResponse; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.stub.GrpcOperationsStub; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the BetaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcBetaAnalyticsDataStub extends BetaAnalyticsDataStub { - private static final MethodDescriptor - runReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunReport") - .setRequestMarshaller(ProtoUtils.marshaller(RunReportRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(RunReportResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - runPivotReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport") - .setRequestMarshaller( - ProtoUtils.marshaller(RunPivotReportRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RunPivotReportResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchRunReportsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchRunReportsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchRunReportsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchRunPivotReportsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchRunPivotReportsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchRunPivotReportsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getMetadataMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata") - .setRequestMarshaller(ProtoUtils.marshaller(GetMetadataRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Metadata.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - runRealtimeReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport") - .setRequestMarshaller( - ProtoUtils.marshaller(RunRealtimeReportRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RunRealtimeReportResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - checkCompatibilityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility") - .setRequestMarshaller( - ProtoUtils.marshaller(CheckCompatibilityRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CheckCompatibilityResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable runReportCallable; - private final UnaryCallable runPivotReportCallable; - private final UnaryCallable - batchRunReportsCallable; - private final UnaryCallable - batchRunPivotReportsCallable; - private final UnaryCallable getMetadataCallable; - private final UnaryCallable - runRealtimeReportCallable; - private final UnaryCallable - checkCompatibilityCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcBetaAnalyticsDataStub create(BetaAnalyticsDataStubSettings settings) - throws IOException { - return new GrpcBetaAnalyticsDataStub(settings, ClientContext.create(settings)); - } - - public static final GrpcBetaAnalyticsDataStub create(ClientContext clientContext) - throws IOException { - return new GrpcBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcBetaAnalyticsDataStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcBetaAnalyticsDataStub, 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 GrpcBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcBetaAnalyticsDataCallableFactory()); - } - - /** - * Constructs an instance of GrpcBetaAnalyticsDataStub, 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 GrpcBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings runReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runReportMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings - runPivotReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runPivotReportMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchRunReportsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchRunReportsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchRunPivotReportsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchRunPivotReportsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings getMetadataTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getMetadataMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - runRealtimeReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runRealtimeReportMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings - checkCompatibilityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(checkCompatibilityMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - - this.runReportCallable = - callableFactory.createUnaryCallable( - runReportTransportSettings, settings.runReportSettings(), clientContext); - this.runPivotReportCallable = - callableFactory.createUnaryCallable( - runPivotReportTransportSettings, settings.runPivotReportSettings(), clientContext); - this.batchRunReportsCallable = - callableFactory.createUnaryCallable( - batchRunReportsTransportSettings, settings.batchRunReportsSettings(), clientContext); - this.batchRunPivotReportsCallable = - callableFactory.createUnaryCallable( - batchRunPivotReportsTransportSettings, - settings.batchRunPivotReportsSettings(), - clientContext); - this.getMetadataCallable = - callableFactory.createUnaryCallable( - getMetadataTransportSettings, settings.getMetadataSettings(), clientContext); - this.runRealtimeReportCallable = - callableFactory.createUnaryCallable( - runRealtimeReportTransportSettings, - settings.runRealtimeReportSettings(), - clientContext); - this.checkCompatibilityCallable = - callableFactory.createUnaryCallable( - checkCompatibilityTransportSettings, - settings.checkCompatibilitySettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable runReportCallable() { - return runReportCallable; - } - - @Override - public UnaryCallable runPivotReportCallable() { - return runPivotReportCallable; - } - - @Override - public UnaryCallable batchRunReportsCallable() { - return batchRunReportsCallable; - } - - @Override - public UnaryCallable - batchRunPivotReportsCallable() { - return batchRunPivotReportsCallable; - } - - @Override - public UnaryCallable getMetadataCallable() { - return getMetadataCallable; - } - - @Override - public UnaryCallable - runRealtimeReportCallable() { - return runRealtimeReportCallable; - } - - @Override - public UnaryCallable - checkCompatibilityCallable() { - return checkCompatibilityCallable; - } - - @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-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java deleted file mode 100644 index 5a705d40..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta; - -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.protobuf.AbstractMessage; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class BetaAnalyticsDataClientTest { - private static MockBetaAnalyticsData mockBetaAnalyticsData; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private BetaAnalyticsDataClient client; - - @BeforeClass - public static void startStaticServer() { - mockBetaAnalyticsData = new MockBetaAnalyticsData(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockBetaAnalyticsData)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - BetaAnalyticsDataSettings settings = - BetaAnalyticsDataSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = BetaAnalyticsDataClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void runReportTest() throws Exception { - RunReportResponse expectedResponse = - RunReportResponse.newBuilder() - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .addAllTotals(new ArrayList()) - .addAllMaximums(new ArrayList()) - .addAllMinimums(new ArrayList()) - .setRowCount(1340416618) - .setMetadata(ResponseMetaData.newBuilder().build()) - .setPropertyQuota(PropertyQuota.newBuilder().build()) - .setKind("kind3292052") - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .addAllMetricAggregations(new ArrayList()) - .addAllOrderBys(new ArrayList()) - .setCurrencyCode("currencyCode1004773790") - .setCohortSpec(CohortSpec.newBuilder().build()) - .setKeepEmptyRows(true) - .setReturnPropertyQuota(true) - .build(); - - RunReportResponse actualResponse = client.runReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunReportRequest actualRequest = ((RunReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); - Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); - Assert.assertEquals( - request.getMetricAggregationsList(), actualRequest.getMetricAggregationsList()); - Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); - Assert.assertEquals(request.getCurrencyCode(), actualRequest.getCurrencyCode()); - Assert.assertEquals(request.getCohortSpec(), actualRequest.getCohortSpec()); - Assert.assertEquals(request.getKeepEmptyRows(), actualRequest.getKeepEmptyRows()); - Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runReportExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .addAllMetricAggregations(new ArrayList()) - .addAllOrderBys(new ArrayList()) - .setCurrencyCode("currencyCode1004773790") - .setCohortSpec(CohortSpec.newBuilder().build()) - .setKeepEmptyRows(true) - .setReturnPropertyQuota(true) - .build(); - client.runReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runPivotReportTest() throws Exception { - RunPivotReportResponse expectedResponse = - RunPivotReportResponse.newBuilder() - .addAllPivotHeaders(new ArrayList()) - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .addAllAggregates(new ArrayList()) - .setMetadata(ResponseMetaData.newBuilder().build()) - .setPropertyQuota(PropertyQuota.newBuilder().build()) - .setKind("kind3292052") - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .addAllPivots(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setCurrencyCode("currencyCode1004773790") - .setCohortSpec(CohortSpec.newBuilder().build()) - .setKeepEmptyRows(true) - .setReturnPropertyQuota(true) - .build(); - - RunPivotReportResponse actualResponse = client.runPivotReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunPivotReportRequest actualRequest = ((RunPivotReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - Assert.assertEquals(request.getPivotsList(), actualRequest.getPivotsList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals(request.getCurrencyCode(), actualRequest.getCurrencyCode()); - Assert.assertEquals(request.getCohortSpec(), actualRequest.getCohortSpec()); - Assert.assertEquals(request.getKeepEmptyRows(), actualRequest.getKeepEmptyRows()); - Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runPivotReportExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .addAllPivots(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setCurrencyCode("currencyCode1004773790") - .setCohortSpec(CohortSpec.newBuilder().build()) - .setKeepEmptyRows(true) - .setReturnPropertyQuota(true) - .build(); - client.runPivotReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchRunReportsTest() throws Exception { - BatchRunReportsResponse expectedResponse = - BatchRunReportsResponse.newBuilder() - .addAllReports(new ArrayList()) - .setKind("kind3292052") - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setProperty("property-993141291") - .addAllRequests(new ArrayList()) - .build(); - - BatchRunReportsResponse actualResponse = client.batchRunReports(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchRunReportsRequest actualRequest = ((BatchRunReportsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchRunReportsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setProperty("property-993141291") - .addAllRequests(new ArrayList()) - .build(); - client.batchRunReports(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchRunPivotReportsTest() throws Exception { - BatchRunPivotReportsResponse expectedResponse = - BatchRunPivotReportsResponse.newBuilder() - .addAllPivotReports(new ArrayList()) - .setKind("kind3292052") - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - BatchRunPivotReportsRequest request = - BatchRunPivotReportsRequest.newBuilder() - .setProperty("property-993141291") - .addAllRequests(new ArrayList()) - .build(); - - BatchRunPivotReportsResponse actualResponse = client.batchRunPivotReports(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchRunPivotReportsRequest actualRequest = - ((BatchRunPivotReportsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchRunPivotReportsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - BatchRunPivotReportsRequest request = - BatchRunPivotReportsRequest.newBuilder() - .setProperty("property-993141291") - .addAllRequests(new ArrayList()) - .build(); - client.batchRunPivotReports(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMetadataTest() throws Exception { - Metadata expectedResponse = - Metadata.newBuilder() - .setName(MetadataName.of("[PROPERTY]").toString()) - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - MetadataName name = MetadataName.of("[PROPERTY]"); - - Metadata actualResponse = client.getMetadata(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetMetadataRequest actualRequest = ((GetMetadataRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getMetadataExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - MetadataName name = MetadataName.of("[PROPERTY]"); - client.getMetadata(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMetadataTest2() throws Exception { - Metadata expectedResponse = - Metadata.newBuilder() - .setName(MetadataName.of("[PROPERTY]").toString()) - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - String name = "name3373707"; - - Metadata actualResponse = client.getMetadata(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetMetadataRequest actualRequest = ((GetMetadataRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getMetadataExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - String name = "name3373707"; - client.getMetadata(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runRealtimeReportTest() throws Exception { - RunRealtimeReportResponse expectedResponse = - RunRealtimeReportResponse.newBuilder() - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .addAllTotals(new ArrayList()) - .addAllMaximums(new ArrayList()) - .addAllMinimums(new ArrayList()) - .setRowCount(1340416618) - .setPropertyQuota(PropertyQuota.newBuilder().build()) - .setKind("kind3292052") - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setLimit(102976443) - .addAllMetricAggregations(new ArrayList()) - .addAllOrderBys(new ArrayList()) - .setReturnPropertyQuota(true) - .addAllMinuteRanges(new ArrayList()) - .build(); - - RunRealtimeReportResponse actualResponse = client.runRealtimeReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunRealtimeReportRequest actualRequest = ((RunRealtimeReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); - Assert.assertEquals( - request.getMetricAggregationsList(), actualRequest.getMetricAggregationsList()); - Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); - Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); - Assert.assertEquals(request.getMinuteRangesList(), actualRequest.getMinuteRangesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runRealtimeReportExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setLimit(102976443) - .addAllMetricAggregations(new ArrayList()) - .addAllOrderBys(new ArrayList()) - .setReturnPropertyQuota(true) - .addAllMinuteRanges(new ArrayList()) - .build(); - client.runRealtimeReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void checkCompatibilityTest() throws Exception { - CheckCompatibilityResponse expectedResponse = - CheckCompatibilityResponse.newBuilder() - .addAllDimensionCompatibilities(new ArrayList()) - .addAllMetricCompatibilities(new ArrayList()) - .build(); - mockBetaAnalyticsData.addResponse(expectedResponse); - - CheckCompatibilityRequest request = - CheckCompatibilityRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setCompatibilityFilter(Compatibility.forNumber(0)) - .build(); - - CheckCompatibilityResponse actualResponse = client.checkCompatibility(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBetaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CheckCompatibilityRequest actualRequest = ((CheckCompatibilityRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals(request.getCompatibilityFilter(), actualRequest.getCompatibilityFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void checkCompatibilityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBetaAnalyticsData.addException(exception); - - try { - CheckCompatibilityRequest request = - CheckCompatibilityRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .setCompatibilityFilter(Compatibility.forNumber(0)) - .build(); - client.checkCompatibility(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsData.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsData.java deleted file mode 100644 index 2d49aa0c..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsData.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta; - -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 MockBetaAnalyticsData implements MockGrpcService { - private final MockBetaAnalyticsDataImpl serviceImpl; - - public MockBetaAnalyticsData() { - serviceImpl = new MockBetaAnalyticsDataImpl(); - } - - @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-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java deleted file mode 100644 index 618d05c2..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta; - -import com.google.analytics.data.v1beta.BetaAnalyticsDataGrpc.BetaAnalyticsDataImplBase; -import com.google.api.core.BetaApi; -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 MockBetaAnalyticsDataImpl extends BetaAnalyticsDataImplBase { - private List requests; - private Queue responses; - - public MockBetaAnalyticsDataImpl() { - 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 runReport( - RunReportRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RunReportResponse) { - requests.add(request); - responseObserver.onNext(((RunReportResponse) 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 RunReport, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RunReportResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void runPivotReport( - RunPivotReportRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RunPivotReportResponse) { - requests.add(request); - responseObserver.onNext(((RunPivotReportResponse) 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 RunPivotReport, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RunPivotReportResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchRunReports( - BatchRunReportsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchRunReportsResponse) { - requests.add(request); - responseObserver.onNext(((BatchRunReportsResponse) 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 BatchRunReports, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchRunReportsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchRunPivotReports( - BatchRunPivotReportsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchRunPivotReportsResponse) { - requests.add(request); - responseObserver.onNext(((BatchRunPivotReportsResponse) 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 BatchRunPivotReports, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchRunPivotReportsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getMetadata(GetMetadataRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Metadata) { - requests.add(request); - responseObserver.onNext(((Metadata) 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 GetMetadata, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Metadata.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void runRealtimeReport( - RunRealtimeReportRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RunRealtimeReportResponse) { - requests.add(request); - responseObserver.onNext(((RunRealtimeReportResponse) 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 RunRealtimeReport, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RunRealtimeReportResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void checkCompatibility( - CheckCompatibilityRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CheckCompatibilityResponse) { - requests.add(request); - responseObserver.onNext(((CheckCompatibilityResponse) 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 CheckCompatibility, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CheckCompatibilityResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml deleted file mode 100644 index 769367e7..00000000 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-analytics-data-v1beta - 0.10.3-SNAPSHOT - grpc-google-analytics-data-v1beta - GRPC library for grpc-google-analytics-data-v1beta - - com.google.analytics - google-analytics-data-parent - 0.10.3-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-analytics-data-v1beta - - - 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-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java b/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java deleted file mode 100644 index 414c6fb6..00000000 --- a/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java +++ /dev/null @@ -1,1209 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.analytics.data.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Analytics reporting data service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/data/v1beta/analytics_data_api.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BetaAnalyticsDataGrpc { - - private BetaAnalyticsDataGrpc() {} - - public static final String SERVICE_NAME = "google.analytics.data.v1beta.BetaAnalyticsData"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportResponse> - getRunReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunReport", - requestType = com.google.analytics.data.v1beta.RunReportRequest.class, - responseType = com.google.analytics.data.v1beta.RunReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportResponse> - getRunReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportResponse> - getRunReportMethod; - if ((getRunReportMethod = BetaAnalyticsDataGrpc.getRunReportMethod) == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getRunReportMethod = BetaAnalyticsDataGrpc.getRunReportMethod) == null) { - BetaAnalyticsDataGrpc.getRunReportMethod = - getRunReportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.RunReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.RunReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("RunReport")) - .build(); - } - } - } - return getRunReportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportResponse> - getRunPivotReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunPivotReport", - requestType = com.google.analytics.data.v1beta.RunPivotReportRequest.class, - responseType = com.google.analytics.data.v1beta.RunPivotReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportResponse> - getRunPivotReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportResponse> - getRunPivotReportMethod; - if ((getRunPivotReportMethod = BetaAnalyticsDataGrpc.getRunPivotReportMethod) == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getRunPivotReportMethod = BetaAnalyticsDataGrpc.getRunPivotReportMethod) == null) { - BetaAnalyticsDataGrpc.getRunPivotReportMethod = - getRunPivotReportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPivotReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.RunPivotReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.RunPivotReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("RunPivotReport")) - .build(); - } - } - } - return getRunPivotReportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.BatchRunReportsRequest, - com.google.analytics.data.v1beta.BatchRunReportsResponse> - getBatchRunReportsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRunReports", - requestType = com.google.analytics.data.v1beta.BatchRunReportsRequest.class, - responseType = com.google.analytics.data.v1beta.BatchRunReportsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.BatchRunReportsRequest, - com.google.analytics.data.v1beta.BatchRunReportsResponse> - getBatchRunReportsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.BatchRunReportsRequest, - com.google.analytics.data.v1beta.BatchRunReportsResponse> - getBatchRunReportsMethod; - if ((getBatchRunReportsMethod = BetaAnalyticsDataGrpc.getBatchRunReportsMethod) == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getBatchRunReportsMethod = BetaAnalyticsDataGrpc.getBatchRunReportsMethod) == null) { - BetaAnalyticsDataGrpc.getBatchRunReportsMethod = - getBatchRunReportsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRunReports")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.BatchRunReportsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.BatchRunReportsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("BatchRunReports")) - .build(); - } - } - } - return getBatchRunReportsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest, - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse> - getBatchRunPivotReportsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRunPivotReports", - requestType = com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.class, - responseType = com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest, - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse> - getBatchRunPivotReportsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest, - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse> - getBatchRunPivotReportsMethod; - if ((getBatchRunPivotReportsMethod = BetaAnalyticsDataGrpc.getBatchRunPivotReportsMethod) - == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getBatchRunPivotReportsMethod = BetaAnalyticsDataGrpc.getBatchRunPivotReportsMethod) - == null) { - BetaAnalyticsDataGrpc.getBatchRunPivotReportsMethod = - getBatchRunPivotReportsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchRunPivotReports")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("BatchRunPivotReports")) - .build(); - } - } - } - return getBatchRunPivotReportsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.GetMetadataRequest, - com.google.analytics.data.v1beta.Metadata> - getGetMetadataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMetadata", - requestType = com.google.analytics.data.v1beta.GetMetadataRequest.class, - responseType = com.google.analytics.data.v1beta.Metadata.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.GetMetadataRequest, - com.google.analytics.data.v1beta.Metadata> - getGetMetadataMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.GetMetadataRequest, - com.google.analytics.data.v1beta.Metadata> - getGetMetadataMethod; - if ((getGetMetadataMethod = BetaAnalyticsDataGrpc.getGetMetadataMethod) == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getGetMetadataMethod = BetaAnalyticsDataGrpc.getGetMetadataMethod) == null) { - BetaAnalyticsDataGrpc.getGetMetadataMethod = - getGetMetadataMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadata")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.GetMetadataRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.Metadata.getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("GetMetadata")) - .build(); - } - } - } - return getGetMetadataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunRealtimeReportRequest, - com.google.analytics.data.v1beta.RunRealtimeReportResponse> - getRunRealtimeReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunRealtimeReport", - requestType = com.google.analytics.data.v1beta.RunRealtimeReportRequest.class, - responseType = com.google.analytics.data.v1beta.RunRealtimeReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunRealtimeReportRequest, - com.google.analytics.data.v1beta.RunRealtimeReportResponse> - getRunRealtimeReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.RunRealtimeReportRequest, - com.google.analytics.data.v1beta.RunRealtimeReportResponse> - getRunRealtimeReportMethod; - if ((getRunRealtimeReportMethod = BetaAnalyticsDataGrpc.getRunRealtimeReportMethod) == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getRunRealtimeReportMethod = BetaAnalyticsDataGrpc.getRunRealtimeReportMethod) - == null) { - BetaAnalyticsDataGrpc.getRunRealtimeReportMethod = - getRunRealtimeReportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunRealtimeReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.RunRealtimeReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.RunRealtimeReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("RunRealtimeReport")) - .build(); - } - } - } - return getRunRealtimeReportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.CheckCompatibilityRequest, - com.google.analytics.data.v1beta.CheckCompatibilityResponse> - getCheckCompatibilityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CheckCompatibility", - requestType = com.google.analytics.data.v1beta.CheckCompatibilityRequest.class, - responseType = com.google.analytics.data.v1beta.CheckCompatibilityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.CheckCompatibilityRequest, - com.google.analytics.data.v1beta.CheckCompatibilityResponse> - getCheckCompatibilityMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1beta.CheckCompatibilityRequest, - com.google.analytics.data.v1beta.CheckCompatibilityResponse> - getCheckCompatibilityMethod; - if ((getCheckCompatibilityMethod = BetaAnalyticsDataGrpc.getCheckCompatibilityMethod) == null) { - synchronized (BetaAnalyticsDataGrpc.class) { - if ((getCheckCompatibilityMethod = BetaAnalyticsDataGrpc.getCheckCompatibilityMethod) - == null) { - BetaAnalyticsDataGrpc.getCheckCompatibilityMethod = - getCheckCompatibilityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckCompatibility")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.CheckCompatibilityRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1beta.CheckCompatibilityResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BetaAnalyticsDataMethodDescriptorSupplier("CheckCompatibility")) - .build(); - } - } - } - return getCheckCompatibilityMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BetaAnalyticsDataStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BetaAnalyticsDataStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BetaAnalyticsDataStub(channel, callOptions); - } - }; - return BetaAnalyticsDataStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BetaAnalyticsDataBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BetaAnalyticsDataBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BetaAnalyticsDataBlockingStub(channel, callOptions); - } - }; - return BetaAnalyticsDataBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BetaAnalyticsDataFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BetaAnalyticsDataFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BetaAnalyticsDataFutureStub(channel, callOptions); - } - }; - return BetaAnalyticsDataFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public abstract static class BetaAnalyticsDataImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns a customized report of your Google Analytics event data. Reports
-     * contain statistics derived from data collected by the Google Analytics
-     * tracking code. The data returned from the API is as a table with columns
-     * for the requested dimensions and metrics. Metrics are individual
-     * measurements of user activity on your property, such as active users or
-     * event count. Dimensions break down metrics across some common criteria,
-     * such as country or event name.
-     * 
- */ - public void runReport( - com.google.analytics.data.v1beta.RunReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunReportMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a customized pivot report of your Google Analytics event data.
-     * Pivot reports are more advanced and expressive formats than regular
-     * reports. In a pivot report, dimensions are only visible if they are
-     * included in a pivot. Multiple pivots can be specified to further dissect
-     * your data.
-     * 
- */ - public void runPivotReport( - com.google.analytics.data.v1beta.RunPivotReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunPivotReportMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns multiple reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public void batchRunReports( - com.google.analytics.data.v1beta.BatchRunReportsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchRunReportsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns multiple pivot reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public void batchRunPivotReports( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchRunPivotReportsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns metadata for dimensions and metrics available in reporting methods.
-     * Used to explore the dimensions and metrics. In this method, a Google
-     * Analytics GA4 Property Identifier is specified in the request, and
-     * the metadata response includes Custom dimensions and metrics as well as
-     * Universal metadata.
-     * For example if a custom metric with parameter name `levels_unlocked` is
-     * registered to a property, the Metadata response will contain
-     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
-     * metrics applicable to any property such as `country` and `totalUsers`.
-     * 
- */ - public void getMetadata( - com.google.analytics.data.v1beta.GetMetadataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMetadataMethod(), responseObserver); - } - - /** - * - * - *
-     * The Google Analytics Realtime API returns a customized report of realtime
-     * event data for your property. These reports show events and usage from the
-     * last 30 minutes.
-     * 
- */ - public void runRealtimeReport( - com.google.analytics.data.v1beta.RunRealtimeReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunRealtimeReportMethod(), responseObserver); - } - - /** - * - * - *
-     * This compatibility method lists dimensions and metrics that can be added to
-     * a report request and maintain compatibility. This method fails if the
-     * request's dimensions and metrics are incompatible.
-     * In Google Analytics, reports fail if they request incompatible dimensions
-     * and/or metrics; in that case, you will need to remove dimensions and/or
-     * metrics from the incompatible report until the report is compatible.
-     * The Realtime and Core reports have different compatibility rules. This
-     * method checks compatibility for Core reports.
-     * 
- */ - public void checkCompatibility( - com.google.analytics.data.v1beta.CheckCompatibilityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCheckCompatibilityMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRunReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportResponse>( - this, METHODID_RUN_REPORT))) - .addMethod( - getRunPivotReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportResponse>( - this, METHODID_RUN_PIVOT_REPORT))) - .addMethod( - getBatchRunReportsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.BatchRunReportsRequest, - com.google.analytics.data.v1beta.BatchRunReportsResponse>( - this, METHODID_BATCH_RUN_REPORTS))) - .addMethod( - getBatchRunPivotReportsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest, - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>( - this, METHODID_BATCH_RUN_PIVOT_REPORTS))) - .addMethod( - getGetMetadataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.GetMetadataRequest, - com.google.analytics.data.v1beta.Metadata>(this, METHODID_GET_METADATA))) - .addMethod( - getRunRealtimeReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.RunRealtimeReportRequest, - com.google.analytics.data.v1beta.RunRealtimeReportResponse>( - this, METHODID_RUN_REALTIME_REPORT))) - .addMethod( - getCheckCompatibilityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1beta.CheckCompatibilityRequest, - com.google.analytics.data.v1beta.CheckCompatibilityResponse>( - this, METHODID_CHECK_COMPATIBILITY))) - .build(); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class BetaAnalyticsDataStub - extends io.grpc.stub.AbstractAsyncStub { - private BetaAnalyticsDataStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BetaAnalyticsDataStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BetaAnalyticsDataStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a customized report of your Google Analytics event data. Reports
-     * contain statistics derived from data collected by the Google Analytics
-     * tracking code. The data returned from the API is as a table with columns
-     * for the requested dimensions and metrics. Metrics are individual
-     * measurements of user activity on your property, such as active users or
-     * event count. Dimensions break down metrics across some common criteria,
-     * such as country or event name.
-     * 
- */ - public void runReport( - com.google.analytics.data.v1beta.RunReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunReportMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Returns a customized pivot report of your Google Analytics event data.
-     * Pivot reports are more advanced and expressive formats than regular
-     * reports. In a pivot report, dimensions are only visible if they are
-     * included in a pivot. Multiple pivots can be specified to further dissect
-     * your data.
-     * 
- */ - public void runPivotReport( - com.google.analytics.data.v1beta.RunPivotReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunPivotReportMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns multiple reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public void batchRunReports( - com.google.analytics.data.v1beta.BatchRunReportsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchRunReportsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns multiple pivot reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public void batchRunPivotReports( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchRunPivotReportsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns metadata for dimensions and metrics available in reporting methods.
-     * Used to explore the dimensions and metrics. In this method, a Google
-     * Analytics GA4 Property Identifier is specified in the request, and
-     * the metadata response includes Custom dimensions and metrics as well as
-     * Universal metadata.
-     * For example if a custom metric with parameter name `levels_unlocked` is
-     * registered to a property, the Metadata response will contain
-     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
-     * metrics applicable to any property such as `country` and `totalUsers`.
-     * 
- */ - public void getMetadata( - com.google.analytics.data.v1beta.GetMetadataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMetadataMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * The Google Analytics Realtime API returns a customized report of realtime
-     * event data for your property. These reports show events and usage from the
-     * last 30 minutes.
-     * 
- */ - public void runRealtimeReport( - com.google.analytics.data.v1beta.RunRealtimeReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunRealtimeReportMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * This compatibility method lists dimensions and metrics that can be added to
-     * a report request and maintain compatibility. This method fails if the
-     * request's dimensions and metrics are incompatible.
-     * In Google Analytics, reports fail if they request incompatible dimensions
-     * and/or metrics; in that case, you will need to remove dimensions and/or
-     * metrics from the incompatible report until the report is compatible.
-     * The Realtime and Core reports have different compatibility rules. This
-     * method checks compatibility for Core reports.
-     * 
- */ - public void checkCompatibility( - com.google.analytics.data.v1beta.CheckCompatibilityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCheckCompatibilityMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class BetaAnalyticsDataBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BetaAnalyticsDataBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BetaAnalyticsDataBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BetaAnalyticsDataBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a customized report of your Google Analytics event data. Reports
-     * contain statistics derived from data collected by the Google Analytics
-     * tracking code. The data returned from the API is as a table with columns
-     * for the requested dimensions and metrics. Metrics are individual
-     * measurements of user activity on your property, such as active users or
-     * event count. Dimensions break down metrics across some common criteria,
-     * such as country or event name.
-     * 
- */ - public com.google.analytics.data.v1beta.RunReportResponse runReport( - com.google.analytics.data.v1beta.RunReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunReportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a customized pivot report of your Google Analytics event data.
-     * Pivot reports are more advanced and expressive formats than regular
-     * reports. In a pivot report, dimensions are only visible if they are
-     * included in a pivot. Multiple pivots can be specified to further dissect
-     * your data.
-     * 
- */ - public com.google.analytics.data.v1beta.RunPivotReportResponse runPivotReport( - com.google.analytics.data.v1beta.RunPivotReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunPivotReportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns multiple reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public com.google.analytics.data.v1beta.BatchRunReportsResponse batchRunReports( - com.google.analytics.data.v1beta.BatchRunReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchRunReportsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns multiple pivot reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse batchRunPivotReports( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchRunPivotReportsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns metadata for dimensions and metrics available in reporting methods.
-     * Used to explore the dimensions and metrics. In this method, a Google
-     * Analytics GA4 Property Identifier is specified in the request, and
-     * the metadata response includes Custom dimensions and metrics as well as
-     * Universal metadata.
-     * For example if a custom metric with parameter name `levels_unlocked` is
-     * registered to a property, the Metadata response will contain
-     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
-     * metrics applicable to any property such as `country` and `totalUsers`.
-     * 
- */ - public com.google.analytics.data.v1beta.Metadata getMetadata( - com.google.analytics.data.v1beta.GetMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetadataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * The Google Analytics Realtime API returns a customized report of realtime
-     * event data for your property. These reports show events and usage from the
-     * last 30 minutes.
-     * 
- */ - public com.google.analytics.data.v1beta.RunRealtimeReportResponse runRealtimeReport( - com.google.analytics.data.v1beta.RunRealtimeReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunRealtimeReportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * This compatibility method lists dimensions and metrics that can be added to
-     * a report request and maintain compatibility. This method fails if the
-     * request's dimensions and metrics are incompatible.
-     * In Google Analytics, reports fail if they request incompatible dimensions
-     * and/or metrics; in that case, you will need to remove dimensions and/or
-     * metrics from the incompatible report until the report is compatible.
-     * The Realtime and Core reports have different compatibility rules. This
-     * method checks compatibility for Core reports.
-     * 
- */ - public com.google.analytics.data.v1beta.CheckCompatibilityResponse checkCompatibility( - com.google.analytics.data.v1beta.CheckCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCheckCompatibilityMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class BetaAnalyticsDataFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BetaAnalyticsDataFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BetaAnalyticsDataFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BetaAnalyticsDataFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a customized report of your Google Analytics event data. Reports
-     * contain statistics derived from data collected by the Google Analytics
-     * tracking code. The data returned from the API is as a table with columns
-     * for the requested dimensions and metrics. Metrics are individual
-     * measurements of user activity on your property, such as active users or
-     * event count. Dimensions break down metrics across some common criteria,
-     * such as country or event name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.RunReportResponse> - runReport(com.google.analytics.data.v1beta.RunReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunReportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a customized pivot report of your Google Analytics event data.
-     * Pivot reports are more advanced and expressive formats than regular
-     * reports. In a pivot report, dimensions are only visible if they are
-     * included in a pivot. Multiple pivots can be specified to further dissect
-     * your data.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.RunPivotReportResponse> - runPivotReport(com.google.analytics.data.v1beta.RunPivotReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunPivotReportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns multiple reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.BatchRunReportsResponse> - batchRunReports(com.google.analytics.data.v1beta.BatchRunReportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchRunReportsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns multiple pivot reports in a batch. All reports must be for the same
-     * GA4 Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse> - batchRunPivotReports(com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchRunPivotReportsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns metadata for dimensions and metrics available in reporting methods.
-     * Used to explore the dimensions and metrics. In this method, a Google
-     * Analytics GA4 Property Identifier is specified in the request, and
-     * the metadata response includes Custom dimensions and metrics as well as
-     * Universal metadata.
-     * For example if a custom metric with parameter name `levels_unlocked` is
-     * registered to a property, the Metadata response will contain
-     * `customEvent:levels_unlocked`. Universal metadata are dimensions and
-     * metrics applicable to any property such as `country` and `totalUsers`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.Metadata> - getMetadata(com.google.analytics.data.v1beta.GetMetadataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * The Google Analytics Realtime API returns a customized report of realtime
-     * event data for your property. These reports show events and usage from the
-     * last 30 minutes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.RunRealtimeReportResponse> - runRealtimeReport(com.google.analytics.data.v1beta.RunRealtimeReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunRealtimeReportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * This compatibility method lists dimensions and metrics that can be added to
-     * a report request and maintain compatibility. This method fails if the
-     * request's dimensions and metrics are incompatible.
-     * In Google Analytics, reports fail if they request incompatible dimensions
-     * and/or metrics; in that case, you will need to remove dimensions and/or
-     * metrics from the incompatible report until the report is compatible.
-     * The Realtime and Core reports have different compatibility rules. This
-     * method checks compatibility for Core reports.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1beta.CheckCompatibilityResponse> - checkCompatibility(com.google.analytics.data.v1beta.CheckCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCheckCompatibilityMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RUN_REPORT = 0; - private static final int METHODID_RUN_PIVOT_REPORT = 1; - private static final int METHODID_BATCH_RUN_REPORTS = 2; - private static final int METHODID_BATCH_RUN_PIVOT_REPORTS = 3; - private static final int METHODID_GET_METADATA = 4; - private static final int METHODID_RUN_REALTIME_REPORT = 5; - private static final int METHODID_CHECK_COMPATIBILITY = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BetaAnalyticsDataImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BetaAnalyticsDataImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RUN_REPORT: - serviceImpl.runReport( - (com.google.analytics.data.v1beta.RunReportRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RUN_PIVOT_REPORT: - serviceImpl.runPivotReport( - (com.google.analytics.data.v1beta.RunPivotReportRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_RUN_REPORTS: - serviceImpl.batchRunReports( - (com.google.analytics.data.v1beta.BatchRunReportsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1beta.BatchRunReportsResponse>) - responseObserver); - break; - case METHODID_BATCH_RUN_PIVOT_REPORTS: - serviceImpl.batchRunPivotReports( - (com.google.analytics.data.v1beta.BatchRunPivotReportsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>) - responseObserver); - break; - case METHODID_GET_METADATA: - serviceImpl.getMetadata( - (com.google.analytics.data.v1beta.GetMetadataRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RUN_REALTIME_REPORT: - serviceImpl.runRealtimeReport( - (com.google.analytics.data.v1beta.RunRealtimeReportRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1beta.RunRealtimeReportResponse>) - responseObserver); - break; - case METHODID_CHECK_COMPATIBILITY: - serviceImpl.checkCompatibility( - (com.google.analytics.data.v1beta.CheckCompatibilityRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1beta.CheckCompatibilityResponse>) - 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 BetaAnalyticsDataBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BetaAnalyticsDataBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BetaAnalyticsData"); - } - } - - private static final class BetaAnalyticsDataFileDescriptorSupplier - extends BetaAnalyticsDataBaseDescriptorSupplier { - BetaAnalyticsDataFileDescriptorSupplier() {} - } - - private static final class BetaAnalyticsDataMethodDescriptorSupplier - extends BetaAnalyticsDataBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BetaAnalyticsDataMethodDescriptorSupplier(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 (BetaAnalyticsDataGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BetaAnalyticsDataFileDescriptorSupplier()) - .addMethod(getRunReportMethod()) - .addMethod(getRunPivotReportMethod()) - .addMethod(getBatchRunReportsMethod()) - .addMethod(getBatchRunPivotReportsMethod()) - .addMethod(getGetMetadataMethod()) - .addMethod(getRunRealtimeReportMethod()) - .addMethod(getCheckCompatibilityMethod()) - .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/owlbot.py b/owlbot.py deleted file mode 100644 index dca9d867..00000000 --- a/owlbot.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.move(library) - -s.remove_staging_dirs() -java.common_templates() diff --git a/pom.xml b/pom.xml deleted file mode 100644 index d34d6498..00000000 --- a/pom.xml +++ /dev/null @@ -1,180 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data-parent - pom - 0.10.3-SNAPSHOT - Google Analytics Data Parent - https://github.com/googleapis/java-analytics-data - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-shared-config - 1.2.2 - - - - - chingor - Jeff Ching - chingor@google.com - Google - - Developer - - - - - Google LLC - - - scm:git:git@github.com:googleapis/java-analytics-data.git - scm:git:git@github.com:googleapis/java-analytics-data.git - https://github.com/googleapis/java-analytics-data - HEAD - - - https://github.com/googleapis/java-analytics-data/issues - GitHub Issues - - - - - Apache-2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - UTF-8 - UTF-8 - github - google-analytics-data-parent - - - - - - com.google.analytics - google-analytics-data - 0.10.3-SNAPSHOT - - - com.google.api.grpc - proto-google-analytics-data-v1beta - 0.10.3-SNAPSHOT - - - com.google.api.grpc - grpc-google-analytics-data-v1beta - 0.10.3-SNAPSHOT - - - - com.google.cloud - google-cloud-shared-dependencies - 2.5.1 - pom - import - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - google-analytics-data - grpc-google-analytics-data-v1beta - proto-google-analytics-data-v1beta - google-analytics-data-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.1.2 - - - - 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.3.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-analytics-data-v1beta/clirr-ignored-differences.xml b/proto-google-analytics-data-v1beta/clirr-ignored-differences.xml deleted file mode 100644 index 2e38d286..00000000 --- a/proto-google-analytics-data-v1beta/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/analytics/data/v1beta/*OrBuilder - * get*(*) - - - 7012 - com/google/analytics/data/v1beta/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/analytics/data/v1beta/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml deleted file mode 100644 index f0ebd69e..00000000 --- a/proto-google-analytics-data-v1beta/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-analytics-data-v1beta - 0.10.3-SNAPSHOT - proto-google-analytics-data-v1beta - PROTO library for proto-google-analytics-data-v1beta - - com.google.analytics - google-analytics-data-parent - 0.10.3-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.guava - guava - - - com.google.api - api-common - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AnalyticsDataApiProto.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AnalyticsDataApiProto.java deleted file mode 100644 index 4099fcbb..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AnalyticsDataApiProto.java +++ /dev/null @@ -1,461 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public final class AnalyticsDataApiProto { - private AnalyticsDataApiProto() {} - - 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_analytics_data_v1beta_CheckCompatibilityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Metadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Metadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_RunReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_RunReportResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_RunPivotReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_RunPivotReportResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_GetMetadataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/analytics/data/v1beta/analytics" - + "_data_api.proto\022\034google.analytics.data.v" - + "1beta\032\'google/analytics/data/v1beta/data" - + ".proto\032\034google/api/annotations.proto\032\027go" - + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\"\375\002\n\031CheckCompatibilityRequest\022\020\n\010prope" - + "rty\030\001 \001(\t\022;\n\ndimensions\030\002 \003(\0132\'.google.a" - + "nalytics.data.v1beta.Dimension\0225\n\007metric" - + "s\030\003 \003(\0132$.google.analytics.data.v1beta.M" - + "etric\022H\n\020dimension_filter\030\004 \001(\0132..google" - + ".analytics.data.v1beta.FilterExpression\022" - + "E\n\rmetric_filter\030\005 \001(\0132..google.analytic" - + "s.data.v1beta.FilterExpression\022I\n\024compat" - + "ibility_filter\030\006 \001(\0162+.google.analytics." - + "data.v1beta.Compatibility\"\310\001\n\032CheckCompa" - + "tibilityResponse\022W\n\031dimension_compatibil" - + "ities\030\001 \003(\01324.google.analytics.data.v1be" - + "ta.DimensionCompatibility\022Q\n\026metric_comp" - + "atibilities\030\002 \003(\01321.google.analytics.dat" - + "a.v1beta.MetricCompatibility\"\350\001\n\010Metadat" - + "a\022\014\n\004name\030\003 \001(\t\022C\n\ndimensions\030\001 \003(\0132/.go" - + "ogle.analytics.data.v1beta.DimensionMeta" - + "data\022=\n\007metrics\030\002 \003(\0132,.google.analytics" - + ".data.v1beta.MetricMetadata:J\352AG\n%analyt" - + "icsdata.googleapis.com/Metadata\022\036propert" - + "ies/{property}/metadata\"\234\005\n\020RunReportReq" - + "uest\022\020\n\010property\030\001 \001(\t\022;\n\ndimensions\030\002 \003" - + "(\0132\'.google.analytics.data.v1beta.Dimens" - + "ion\0225\n\007metrics\030\003 \003(\0132$.google.analytics." - + "data.v1beta.Metric\022<\n\013date_ranges\030\004 \003(\0132" - + "\'.google.analytics.data.v1beta.DateRange" - + "\022H\n\020dimension_filter\030\005 \001(\0132..google.anal" - + "ytics.data.v1beta.FilterExpression\022E\n\rme" - + "tric_filter\030\006 \001(\0132..google.analytics.dat" - + "a.v1beta.FilterExpression\022\016\n\006offset\030\007 \001(" - + "\003\022\r\n\005limit\030\010 \001(\003\022L\n\023metric_aggregations\030" - + "\t \003(\0162/.google.analytics.data.v1beta.Met" - + "ricAggregation\0228\n\torder_bys\030\n \003(\0132%.goog" - + "le.analytics.data.v1beta.OrderBy\022\025\n\rcurr" - + "ency_code\030\013 \001(\t\022=\n\013cohort_spec\030\014 \001(\0132(.g" - + "oogle.analytics.data.v1beta.CohortSpec\022\027" - + "\n\017keep_empty_rows\030\r \001(\010\022\035\n\025return_proper" - + "ty_quota\030\016 \001(\010\"\227\004\n\021RunReportResponse\022H\n\021" - + "dimension_headers\030\001 \003(\0132-.google.analyti" - + "cs.data.v1beta.DimensionHeader\022B\n\016metric" - + "_headers\030\002 \003(\0132*.google.analytics.data.v" - + "1beta.MetricHeader\022/\n\004rows\030\003 \003(\0132!.googl" - + "e.analytics.data.v1beta.Row\0221\n\006totals\030\004 " - + "\003(\0132!.google.analytics.data.v1beta.Row\0223" - + "\n\010maximums\030\005 \003(\0132!.google.analytics.data" - + ".v1beta.Row\0223\n\010minimums\030\006 \003(\0132!.google.a" - + "nalytics.data.v1beta.Row\022\021\n\trow_count\030\007 " - + "\001(\005\022@\n\010metadata\030\010 \001(\0132..google.analytics" - + ".data.v1beta.ResponseMetaData\022C\n\016propert" - + "y_quota\030\t \001(\0132+.google.analytics.data.v1" - + "beta.PropertyQuota\022\014\n\004kind\030\n \001(\t\"\257\004\n\025Run" - + "PivotReportRequest\022\020\n\010property\030\001 \001(\t\022;\n\n" - + "dimensions\030\002 \003(\0132\'.google.analytics.data" - + ".v1beta.Dimension\0225\n\007metrics\030\003 \003(\0132$.goo" - + "gle.analytics.data.v1beta.Metric\022<\n\013date" - + "_ranges\030\004 \003(\0132\'.google.analytics.data.v1" - + "beta.DateRange\0223\n\006pivots\030\005 \003(\0132#.google." - + "analytics.data.v1beta.Pivot\022H\n\020dimension" - + "_filter\030\006 \001(\0132..google.analytics.data.v1" - + "beta.FilterExpression\022E\n\rmetric_filter\030\007" - + " \001(\0132..google.analytics.data.v1beta.Filt" - + "erExpression\022\025\n\rcurrency_code\030\010 \001(\t\022=\n\013c" - + "ohort_spec\030\t \001(\0132(.google.analytics.data" - + ".v1beta.CohortSpec\022\027\n\017keep_empty_rows\030\n " - + "\001(\010\022\035\n\025return_property_quota\030\013 \001(\010\"\345\003\n\026R" - + "unPivotReportResponse\022@\n\rpivot_headers\030\001" - + " \003(\0132).google.analytics.data.v1beta.Pivo" - + "tHeader\022H\n\021dimension_headers\030\002 \003(\0132-.goo" - + "gle.analytics.data.v1beta.DimensionHeade" - + "r\022B\n\016metric_headers\030\003 \003(\0132*.google.analy" - + "tics.data.v1beta.MetricHeader\022/\n\004rows\030\004 " - + "\003(\0132!.google.analytics.data.v1beta.Row\0225" - + "\n\naggregates\030\005 \003(\0132!.google.analytics.da" - + "ta.v1beta.Row\022@\n\010metadata\030\006 \001(\0132..google" - + ".analytics.data.v1beta.ResponseMetaData\022" - + "C\n\016property_quota\030\007 \001(\0132+.google.analyti" - + "cs.data.v1beta.PropertyQuota\022\014\n\004kind\030\010 \001" - + "(\t\"l\n\026BatchRunReportsRequest\022\020\n\010property" - + "\030\001 \001(\t\022@\n\010requests\030\002 \003(\0132..google.analyt" - + "ics.data.v1beta.RunReportRequest\"i\n\027Batc" - + "hRunReportsResponse\022@\n\007reports\030\001 \003(\0132/.g" - + "oogle.analytics.data.v1beta.RunReportRes" - + "ponse\022\014\n\004kind\030\002 \001(\t\"v\n\033BatchRunPivotRepo" - + "rtsRequest\022\020\n\010property\030\001 \001(\t\022E\n\010requests" - + "\030\002 \003(\01323.google.analytics.data.v1beta.Ru" - + "nPivotReportRequest\"y\n\034BatchRunPivotRepo" - + "rtsResponse\022K\n\rpivot_reports\030\001 \003(\01324.goo" - + "gle.analytics.data.v1beta.RunPivotReport" - + "Response\022\014\n\004kind\030\002 \001(\t\"Q\n\022GetMetadataReq" - + "uest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyticsdat" - + "a.googleapis.com/Metadata\"\251\004\n\030RunRealtim" - + "eReportRequest\022\020\n\010property\030\001 \001(\t\022;\n\ndime" - + "nsions\030\002 \003(\0132\'.google.analytics.data.v1b" - + "eta.Dimension\0225\n\007metrics\030\003 \003(\0132$.google." - + "analytics.data.v1beta.Metric\022H\n\020dimensio" - + "n_filter\030\004 \001(\0132..google.analytics.data.v" - + "1beta.FilterExpression\022E\n\rmetric_filter\030" - + "\005 \001(\0132..google.analytics.data.v1beta.Fil" - + "terExpression\022\r\n\005limit\030\006 \001(\003\022L\n\023metric_a" - + "ggregations\030\007 \003(\0162/.google.analytics.dat" - + "a.v1beta.MetricAggregation\0228\n\torder_bys\030" - + "\010 \003(\0132%.google.analytics.data.v1beta.Ord" - + "erBy\022\035\n\025return_property_quota\030\t \001(\010\022@\n\rm" - + "inute_ranges\030\n \003(\0132).google.analytics.da" - + "ta.v1beta.MinuteRange\"\335\003\n\031RunRealtimeRep" - + "ortResponse\022H\n\021dimension_headers\030\001 \003(\0132-" - + ".google.analytics.data.v1beta.DimensionH" - + "eader\022B\n\016metric_headers\030\002 \003(\0132*.google.a" - + "nalytics.data.v1beta.MetricHeader\022/\n\004row" - + "s\030\003 \003(\0132!.google.analytics.data.v1beta.R" - + "ow\0221\n\006totals\030\004 \003(\0132!.google.analytics.da" - + "ta.v1beta.Row\0223\n\010maximums\030\005 \003(\0132!.google" - + ".analytics.data.v1beta.Row\0223\n\010minimums\030\006" - + " \003(\0132!.google.analytics.data.v1beta.Row\022" - + "\021\n\trow_count\030\007 \001(\005\022C\n\016property_quota\030\010 \001" - + "(\0132+.google.analytics.data.v1beta.Proper" - + "tyQuota\022\014\n\004kind\030\t \001(\t2\254\013\n\021BetaAnalyticsD" - + "ata\022\242\001\n\tRunReport\022..google.analytics.dat" - + "a.v1beta.RunReportRequest\032/.google.analy" - + "tics.data.v1beta.RunReportResponse\"4\202\323\344\223" - + "\002.\")/v1beta/{property=properties/*}:runR" - + "eport:\001*\022\266\001\n\016RunPivotReport\0223.google.ana" - + "lytics.data.v1beta.RunPivotReportRequest" - + "\0324.google.analytics.data.v1beta.RunPivot" - + "ReportResponse\"9\202\323\344\223\0023\"./v1beta/{propert" - + "y=properties/*}:runPivotReport:\001*\022\272\001\n\017Ba" - + "tchRunReports\0224.google.analytics.data.v1" - + "beta.BatchRunReportsRequest\0325.google.ana" - + "lytics.data.v1beta.BatchRunReportsRespon" - + "se\":\202\323\344\223\0024\"//v1beta/{property=properties" - + "/*}:batchRunReports:\001*\022\316\001\n\024BatchRunPivot" - + "Reports\0229.google.analytics.data.v1beta.B" - + "atchRunPivotReportsRequest\032:.google.anal" - + "ytics.data.v1beta.BatchRunPivotReportsRe" - + "sponse\"?\202\323\344\223\0029\"4/v1beta/{property=proper" - + "ties/*}:batchRunPivotReports:\001*\022\234\001\n\013GetM" - + "etadata\0220.google.analytics.data.v1beta.G" - + "etMetadataRequest\032&.google.analytics.dat" - + "a.v1beta.Metadata\"3\202\323\344\223\002&\022$/v1beta/{name" - + "=properties/*/metadata}\332A\004name\022\302\001\n\021RunRe" - + "altimeReport\0226.google.analytics.data.v1b" - + "eta.RunRealtimeReportRequest\0327.google.an" - + "alytics.data.v1beta.RunRealtimeReportRes" - + "ponse\"<\202\323\344\223\0026\"1/v1beta/{property=propert" - + "ies/*}:runRealtimeReport:\001*\022\306\001\n\022CheckCom" - + "patibility\0227.google.analytics.data.v1bet" - + "a.CheckCompatibilityRequest\0328.google.ana" - + "lytics.data.v1beta.CheckCompatibilityRes" - + "ponse\"=\202\323\344\223\0027\"2/v1beta/{property=propert" - + "ies/*}:checkCompatibility:\001*\032~\312A\034analyti" - + "csdata.googleapis.com\322A\\https://www.goog" - + "leapis.com/auth/analytics,https://www.go" - + "ogleapis.com/auth/analytics.readonlyB}\n " - + "com.google.analytics.data.v1betaB\025Analyt" - + "icsDataApiProtoP\001Z@google.golang.org/gen" - + "proto/googleapis/analytics/data/v1beta;d" - + "atab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.data.v1beta.ReportingApiProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_descriptor, - new java.lang.String[] { - "Property", - "Dimensions", - "Metrics", - "DimensionFilter", - "MetricFilter", - "CompatibilityFilter", - }); - internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_descriptor, - new java.lang.String[] { - "DimensionCompatibilities", "MetricCompatibilities", - }); - internal_static_google_analytics_data_v1beta_Metadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_data_v1beta_Metadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Metadata_descriptor, - new java.lang.String[] { - "Name", "Dimensions", "Metrics", - }); - internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_data_v1beta_RunReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor, - new java.lang.String[] { - "Property", - "Dimensions", - "Metrics", - "DateRanges", - "DimensionFilter", - "MetricFilter", - "Offset", - "Limit", - "MetricAggregations", - "OrderBys", - "CurrencyCode", - "CohortSpec", - "KeepEmptyRows", - "ReturnPropertyQuota", - }); - internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_data_v1beta_RunReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor, - new java.lang.String[] { - "DimensionHeaders", - "MetricHeaders", - "Rows", - "Totals", - "Maximums", - "Minimums", - "RowCount", - "Metadata", - "PropertyQuota", - "Kind", - }); - internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_data_v1beta_RunPivotReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor, - new java.lang.String[] { - "Property", - "Dimensions", - "Metrics", - "DateRanges", - "Pivots", - "DimensionFilter", - "MetricFilter", - "CurrencyCode", - "CohortSpec", - "KeepEmptyRows", - "ReturnPropertyQuota", - }); - internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_data_v1beta_RunPivotReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor, - new java.lang.String[] { - "PivotHeaders", - "DimensionHeaders", - "MetricHeaders", - "Rows", - "Aggregates", - "Metadata", - "PropertyQuota", - "Kind", - }); - internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor, - new java.lang.String[] { - "Property", "Requests", - }); - internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor, - new java.lang.String[] { - "Reports", "Kind", - }); - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor, - new java.lang.String[] { - "Property", "Requests", - }); - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor, - new java.lang.String[] { - "PivotReports", "Kind", - }); - internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_data_v1beta_GetMetadataRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor, - new java.lang.String[] { - "Property", - "Dimensions", - "Metrics", - "DimensionFilter", - "MetricFilter", - "Limit", - "MetricAggregations", - "OrderBys", - "ReturnPropertyQuota", - "MinuteRanges", - }); - internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor, - new java.lang.String[] { - "DimensionHeaders", - "MetricHeaders", - "Rows", - "Totals", - "Maximums", - "Minimums", - "RowCount", - "PropertyQuota", - "Kind", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.analytics.data.v1beta.ReportingApiProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java deleted file mode 100644 index 893069af..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java +++ /dev/null @@ -1,1219 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The batch request containing multiple pivot report requests.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunPivotReportsRequest} - */ -public final class BatchRunPivotReportsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.BatchRunPivotReportsRequest) - BatchRunPivotReportsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchRunPivotReportsRequest.newBuilder() to construct. - private BatchRunPivotReportsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchRunPivotReportsRequest() { - property_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchRunPivotReportsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BatchRunPivotReportsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - property_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.RunPivotReportRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.analytics.data.v1beta.RunPivotReportRequest.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.class, - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunPivotReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunPivotReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTS_FIELD_NUMBER = 2; - private java.util.List requests_; - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(2, requests_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.BatchRunPivotReportsRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest other = - (com.google.analytics.data.v1beta.BatchRunPivotReportsRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 batch request containing multiple pivot report requests.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunPivotReportsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.BatchRunPivotReportsRequest) - com.google.analytics.data.v1beta.BatchRunPivotReportsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.class, - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - requestsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsRequest - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsRequest build() { - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsRequest buildPartial() { - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest result = - new com.google.analytics.data.v1beta.BatchRunPivotReportsRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.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.analytics.data.v1beta.BatchRunPivotReportsRequest) { - return mergeFrom((com.google.analytics.data.v1beta.BatchRunPivotReportsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunPivotReportsRequest other) { - if (other - == com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunPivotReportsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunPivotReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunPivotReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunPivotReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunPivotReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunPivotReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportRequest.Builder, - com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public java.util.List - getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunPivotReportRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder setRequests( - int index, com.google.analytics.data.v1beta.RunPivotReportRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder setRequests( - int index, com.google.analytics.data.v1beta.RunPivotReportRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder addRequests(com.google.analytics.data.v1beta.RunPivotReportRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder addRequests( - int index, com.google.analytics.data.v1beta.RunPivotReportRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder addRequests( - com.google.analytics.data.v1beta.RunPivotReportRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder addRequests( - int index, com.google.analytics.data.v1beta.RunPivotReportRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder addAllRequests( - java.lang.Iterable - values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunPivotReportRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunPivotReportRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.RunPivotReportRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunPivotReportRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.RunPivotReportRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Individual requests. Each request has a separate pivot report response.
-     * Each batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportRequest.Builder, - com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunPivotReportRequest, - com.google.analytics.data.v1beta.RunPivotReportRequest.Builder, - com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.BatchRunPivotReportsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.BatchRunPivotReportsRequest) - private static final com.google.analytics.data.v1beta.BatchRunPivotReportsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.BatchRunPivotReportsRequest(); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRunPivotReportsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunPivotReportsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java deleted file mode 100644 index 20522666..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface BatchRunPivotReportsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.BatchRunPivotReportsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunPivotReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunPivotReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - com.google.analytics.data.v1beta.RunPivotReportRequest getRequests(int index); - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - int getRequestsCount(); - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponse.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponse.java deleted file mode 100644 index dad592ab..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponse.java +++ /dev/null @@ -1,1167 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The batch response containing multiple pivot reports.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunPivotReportsResponse} - */ -public final class BatchRunPivotReportsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.BatchRunPivotReportsResponse) - BatchRunPivotReportsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchRunPivotReportsResponse.newBuilder() to construct. - private BatchRunPivotReportsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchRunPivotReportsResponse() { - pivotReports_ = java.util.Collections.emptyList(); - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchRunPivotReportsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BatchRunPivotReportsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pivotReports_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.RunPivotReportResponse>(); - mutable_bitField0_ |= 0x00000001; - } - pivotReports_.add( - input.readMessage( - com.google.analytics.data.v1beta.RunPivotReportResponse.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pivotReports_ = java.util.Collections.unmodifiableList(pivotReports_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.class, - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.Builder.class); - } - - public static final int PIVOT_REPORTS_FIELD_NUMBER = 1; - private java.util.List pivotReports_; - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public java.util.List - getPivotReportsList() { - return pivotReports_; - } - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public java.util.List - getPivotReportsOrBuilderList() { - return pivotReports_; - } - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public int getPivotReportsCount() { - return pivotReports_.size(); - } - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportResponse getPivotReports(int index) { - return pivotReports_.get(index); - } - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder getPivotReportsOrBuilder( - int index) { - return pivotReports_.get(index); - } - - public static final int KIND_FIELD_NUMBER = 2; - private volatile java.lang.Object kind_; - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < pivotReports_.size(); i++) { - output.writeMessage(1, pivotReports_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pivotReports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pivotReports_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.BatchRunPivotReportsResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse other = - (com.google.analytics.data.v1beta.BatchRunPivotReportsResponse) obj; - - if (!getPivotReportsList().equals(other.getPivotReportsList())) return false; - if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPivotReportsCount() > 0) { - hash = (37 * hash) + PIVOT_REPORTS_FIELD_NUMBER; - hash = (53 * hash) + getPivotReportsList().hashCode(); - } - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 batch response containing multiple pivot reports.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunPivotReportsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.BatchRunPivotReportsResponse) - com.google.analytics.data.v1beta.BatchRunPivotReportsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.class, - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotReportsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (pivotReportsBuilder_ == null) { - pivotReports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pivotReportsBuilder_.clear(); - } - kind_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse build() { - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse buildPartial() { - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse result = - new com.google.analytics.data.v1beta.BatchRunPivotReportsResponse(this); - int from_bitField0_ = bitField0_; - if (pivotReportsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pivotReports_ = java.util.Collections.unmodifiableList(pivotReports_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pivotReports_ = pivotReports_; - } else { - result.pivotReports_ = pivotReportsBuilder_.build(); - } - result.kind_ = kind_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.BatchRunPivotReportsResponse) { - return mergeFrom((com.google.analytics.data.v1beta.BatchRunPivotReportsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunPivotReportsResponse other) { - if (other - == com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.getDefaultInstance()) - return this; - if (pivotReportsBuilder_ == null) { - if (!other.pivotReports_.isEmpty()) { - if (pivotReports_.isEmpty()) { - pivotReports_ = other.pivotReports_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePivotReportsIsMutable(); - pivotReports_.addAll(other.pivotReports_); - } - onChanged(); - } - } else { - if (!other.pivotReports_.isEmpty()) { - if (pivotReportsBuilder_.isEmpty()) { - pivotReportsBuilder_.dispose(); - pivotReportsBuilder_ = null; - pivotReports_ = other.pivotReports_; - bitField0_ = (bitField0_ & ~0x00000001); - pivotReportsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPivotReportsFieldBuilder() - : null; - } else { - pivotReportsBuilder_.addAllMessages(other.pivotReports_); - } - } - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.BatchRunPivotReportsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunPivotReportsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List pivotReports_ = - java.util.Collections.emptyList(); - - private void ensurePivotReportsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pivotReports_ = - new java.util.ArrayList( - pivotReports_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunPivotReportResponse, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder, - com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder> - pivotReportsBuilder_; - - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public java.util.List - getPivotReportsList() { - if (pivotReportsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pivotReports_); - } else { - return pivotReportsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public int getPivotReportsCount() { - if (pivotReportsBuilder_ == null) { - return pivotReports_.size(); - } else { - return pivotReportsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public com.google.analytics.data.v1beta.RunPivotReportResponse getPivotReports(int index) { - if (pivotReportsBuilder_ == null) { - return pivotReports_.get(index); - } else { - return pivotReportsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder setPivotReports( - int index, com.google.analytics.data.v1beta.RunPivotReportResponse value) { - if (pivotReportsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotReportsIsMutable(); - pivotReports_.set(index, value); - onChanged(); - } else { - pivotReportsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder setPivotReports( - int index, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder builderForValue) { - if (pivotReportsBuilder_ == null) { - ensurePivotReportsIsMutable(); - pivotReports_.set(index, builderForValue.build()); - onChanged(); - } else { - pivotReportsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder addPivotReports(com.google.analytics.data.v1beta.RunPivotReportResponse value) { - if (pivotReportsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotReportsIsMutable(); - pivotReports_.add(value); - onChanged(); - } else { - pivotReportsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder addPivotReports( - int index, com.google.analytics.data.v1beta.RunPivotReportResponse value) { - if (pivotReportsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotReportsIsMutable(); - pivotReports_.add(index, value); - onChanged(); - } else { - pivotReportsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder addPivotReports( - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder builderForValue) { - if (pivotReportsBuilder_ == null) { - ensurePivotReportsIsMutable(); - pivotReports_.add(builderForValue.build()); - onChanged(); - } else { - pivotReportsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder addPivotReports( - int index, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder builderForValue) { - if (pivotReportsBuilder_ == null) { - ensurePivotReportsIsMutable(); - pivotReports_.add(index, builderForValue.build()); - onChanged(); - } else { - pivotReportsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder addAllPivotReports( - java.lang.Iterable - values) { - if (pivotReportsBuilder_ == null) { - ensurePivotReportsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pivotReports_); - onChanged(); - } else { - pivotReportsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder clearPivotReports() { - if (pivotReportsBuilder_ == null) { - pivotReports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pivotReportsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public Builder removePivotReports(int index) { - if (pivotReportsBuilder_ == null) { - ensurePivotReportsIsMutable(); - pivotReports_.remove(index); - onChanged(); - } else { - pivotReportsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public com.google.analytics.data.v1beta.RunPivotReportResponse.Builder getPivotReportsBuilder( - int index) { - return getPivotReportsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder - getPivotReportsOrBuilder(int index) { - if (pivotReportsBuilder_ == null) { - return pivotReports_.get(index); - } else { - return pivotReportsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public java.util.List< - ? extends com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder> - getPivotReportsOrBuilderList() { - if (pivotReportsBuilder_ != null) { - return pivotReportsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pivotReports_); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public com.google.analytics.data.v1beta.RunPivotReportResponse.Builder - addPivotReportsBuilder() { - return getPivotReportsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.RunPivotReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public com.google.analytics.data.v1beta.RunPivotReportResponse.Builder addPivotReportsBuilder( - int index) { - return getPivotReportsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.RunPivotReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - public java.util.List - getPivotReportsBuilderList() { - return getPivotReportsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunPivotReportResponse, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder, - com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder> - getPivotReportsFieldBuilder() { - if (pivotReportsBuilder_ == null) { - pivotReportsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunPivotReportResponse, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder, - com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder>( - pivotReports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - pivotReports_ = null; - } - return pivotReportsBuilder_; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 2; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 2; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 2; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 2; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 2; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kind_ = 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.analytics.data.v1beta.BatchRunPivotReportsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.BatchRunPivotReportsResponse) - private static final com.google.analytics.data.v1beta.BatchRunPivotReportsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.BatchRunPivotReportsResponse(); - } - - public static com.google.analytics.data.v1beta.BatchRunPivotReportsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRunPivotReportsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunPivotReportsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponseOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponseOrBuilder.java deleted file mode 100644 index 97e2320f..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponseOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface BatchRunPivotReportsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.BatchRunPivotReportsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - java.util.List getPivotReportsList(); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - com.google.analytics.data.v1beta.RunPivotReportResponse getPivotReports(int index); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - int getPivotReportsCount(); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - java.util.List - getPivotReportsOrBuilderList(); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder getPivotReportsOrBuilder( - int index); - - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java deleted file mode 100644 index bb6c60c9..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java +++ /dev/null @@ -1,1208 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The batch request containing multiple report requests.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunReportsRequest} - */ -public final class BatchRunReportsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.BatchRunReportsRequest) - BatchRunReportsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchRunReportsRequest.newBuilder() to construct. - private BatchRunReportsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchRunReportsRequest() { - property_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchRunReportsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BatchRunReportsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - property_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.analytics.data.v1beta.RunReportRequest.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunReportsRequest.class, - com.google.analytics.data.v1beta.BatchRunReportsRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTS_FIELD_NUMBER = 2; - private java.util.List requests_; - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(2, requests_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.BatchRunReportsRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.BatchRunReportsRequest other = - (com.google.analytics.data.v1beta.BatchRunReportsRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.BatchRunReportsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 batch request containing multiple report requests.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunReportsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.BatchRunReportsRequest) - com.google.analytics.data.v1beta.BatchRunReportsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunReportsRequest.class, - com.google.analytics.data.v1beta.BatchRunReportsRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.BatchRunReportsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - requestsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.BatchRunReportsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsRequest build() { - com.google.analytics.data.v1beta.BatchRunReportsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsRequest buildPartial() { - com.google.analytics.data.v1beta.BatchRunReportsRequest result = - new com.google.analytics.data.v1beta.BatchRunReportsRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.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.analytics.data.v1beta.BatchRunReportsRequest) { - return mergeFrom((com.google.analytics.data.v1beta.BatchRunReportsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunReportsRequest other) { - if (other == com.google.analytics.data.v1beta.BatchRunReportsRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.BatchRunReportsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunReportsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * This property must be specified for the batch. The property within
-     * RunReportRequest may either be unspecified or consistent with this
-     * property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportRequest.Builder, - com.google.analytics.data.v1beta.RunReportRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunReportRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder setRequests(int index, com.google.analytics.data.v1beta.RunReportRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder setRequests( - int index, com.google.analytics.data.v1beta.RunReportRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder addRequests(com.google.analytics.data.v1beta.RunReportRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder addRequests(int index, com.google.analytics.data.v1beta.RunReportRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder addRequests( - com.google.analytics.data.v1beta.RunReportRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder addRequests( - int index, com.google.analytics.data.v1beta.RunReportRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunReportRequest.Builder getRequestsBuilder(int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunReportRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunReportRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.RunReportRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1beta.RunReportRequest.Builder addRequestsBuilder(int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.RunReportRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportRequest.Builder, - com.google.analytics.data.v1beta.RunReportRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunReportRequest, - com.google.analytics.data.v1beta.RunReportRequest.Builder, - com.google.analytics.data.v1beta.RunReportRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.BatchRunReportsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.BatchRunReportsRequest) - private static final com.google.analytics.data.v1beta.BatchRunReportsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.BatchRunReportsRequest(); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRunReportsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunReportsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java deleted file mode 100644 index 636115b7..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface BatchRunReportsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.BatchRunReportsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * This property must be specified for the batch. The property within
-   * RunReportRequest may either be unspecified or consistent with this
-   * property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - com.google.analytics.data.v1beta.RunReportRequest getRequests(int index); - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - int getRequestsCount(); - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - com.google.analytics.data.v1beta.RunReportRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponse.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponse.java deleted file mode 100644 index 53855a60..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponse.java +++ /dev/null @@ -1,1150 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The batch response containing multiple reports.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunReportsResponse} - */ -public final class BatchRunReportsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.BatchRunReportsResponse) - BatchRunReportsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchRunReportsResponse.newBuilder() to construct. - private BatchRunReportsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchRunReportsResponse() { - reports_ = java.util.Collections.emptyList(); - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchRunReportsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BatchRunReportsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - reports_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - reports_.add( - input.readMessage( - com.google.analytics.data.v1beta.RunReportResponse.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - reports_ = java.util.Collections.unmodifiableList(reports_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunReportsResponse.class, - com.google.analytics.data.v1beta.BatchRunReportsResponse.Builder.class); - } - - public static final int REPORTS_FIELD_NUMBER = 1; - private java.util.List reports_; - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - @java.lang.Override - public java.util.List getReportsList() { - return reports_; - } - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - @java.lang.Override - public java.util.List - getReportsOrBuilderList() { - return reports_; - } - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - @java.lang.Override - public int getReportsCount() { - return reports_.size(); - } - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportResponse getReports(int index) { - return reports_.get(index); - } - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportResponseOrBuilder getReportsOrBuilder( - int index) { - return reports_.get(index); - } - - public static final int KIND_FIELD_NUMBER = 2; - private volatile java.lang.Object kind_; - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < reports_.size(); i++) { - output.writeMessage(1, reports_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < reports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reports_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.BatchRunReportsResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.BatchRunReportsResponse other = - (com.google.analytics.data.v1beta.BatchRunReportsResponse) obj; - - if (!getReportsList().equals(other.getReportsList())) return false; - if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getReportsCount() > 0) { - hash = (37 * hash) + REPORTS_FIELD_NUMBER; - hash = (53 * hash) + getReportsList().hashCode(); - } - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.BatchRunReportsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 batch response containing multiple reports.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.BatchRunReportsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.BatchRunReportsResponse) - com.google.analytics.data.v1beta.BatchRunReportsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.BatchRunReportsResponse.class, - com.google.analytics.data.v1beta.BatchRunReportsResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.BatchRunReportsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getReportsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (reportsBuilder_ == null) { - reports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - reportsBuilder_.clear(); - } - kind_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.BatchRunReportsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsResponse build() { - com.google.analytics.data.v1beta.BatchRunReportsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsResponse buildPartial() { - com.google.analytics.data.v1beta.BatchRunReportsResponse result = - new com.google.analytics.data.v1beta.BatchRunReportsResponse(this); - int from_bitField0_ = bitField0_; - if (reportsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - reports_ = java.util.Collections.unmodifiableList(reports_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.reports_ = reports_; - } else { - result.reports_ = reportsBuilder_.build(); - } - result.kind_ = kind_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.BatchRunReportsResponse) { - return mergeFrom((com.google.analytics.data.v1beta.BatchRunReportsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunReportsResponse other) { - if (other == com.google.analytics.data.v1beta.BatchRunReportsResponse.getDefaultInstance()) - return this; - if (reportsBuilder_ == null) { - if (!other.reports_.isEmpty()) { - if (reports_.isEmpty()) { - reports_ = other.reports_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReportsIsMutable(); - reports_.addAll(other.reports_); - } - onChanged(); - } - } else { - if (!other.reports_.isEmpty()) { - if (reportsBuilder_.isEmpty()) { - reportsBuilder_.dispose(); - reportsBuilder_ = null; - reports_ = other.reports_; - bitField0_ = (bitField0_ & ~0x00000001); - reportsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReportsFieldBuilder() - : null; - } else { - reportsBuilder_.addAllMessages(other.reports_); - } - } - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.BatchRunReportsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunReportsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List reports_ = - java.util.Collections.emptyList(); - - private void ensureReportsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - reports_ = - new java.util.ArrayList(reports_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunReportResponse, - com.google.analytics.data.v1beta.RunReportResponse.Builder, - com.google.analytics.data.v1beta.RunReportResponseOrBuilder> - reportsBuilder_; - - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public java.util.List getReportsList() { - if (reportsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reports_); - } else { - return reportsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public int getReportsCount() { - if (reportsBuilder_ == null) { - return reports_.size(); - } else { - return reportsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1beta.RunReportResponse getReports(int index) { - if (reportsBuilder_ == null) { - return reports_.get(index); - } else { - return reportsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder setReports(int index, com.google.analytics.data.v1beta.RunReportResponse value) { - if (reportsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReportsIsMutable(); - reports_.set(index, value); - onChanged(); - } else { - reportsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder setReports( - int index, com.google.analytics.data.v1beta.RunReportResponse.Builder builderForValue) { - if (reportsBuilder_ == null) { - ensureReportsIsMutable(); - reports_.set(index, builderForValue.build()); - onChanged(); - } else { - reportsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder addReports(com.google.analytics.data.v1beta.RunReportResponse value) { - if (reportsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReportsIsMutable(); - reports_.add(value); - onChanged(); - } else { - reportsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder addReports(int index, com.google.analytics.data.v1beta.RunReportResponse value) { - if (reportsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReportsIsMutable(); - reports_.add(index, value); - onChanged(); - } else { - reportsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder addReports( - com.google.analytics.data.v1beta.RunReportResponse.Builder builderForValue) { - if (reportsBuilder_ == null) { - ensureReportsIsMutable(); - reports_.add(builderForValue.build()); - onChanged(); - } else { - reportsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder addReports( - int index, com.google.analytics.data.v1beta.RunReportResponse.Builder builderForValue) { - if (reportsBuilder_ == null) { - ensureReportsIsMutable(); - reports_.add(index, builderForValue.build()); - onChanged(); - } else { - reportsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder addAllReports( - java.lang.Iterable values) { - if (reportsBuilder_ == null) { - ensureReportsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reports_); - onChanged(); - } else { - reportsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder clearReports() { - if (reportsBuilder_ == null) { - reports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - reportsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public Builder removeReports(int index) { - if (reportsBuilder_ == null) { - ensureReportsIsMutable(); - reports_.remove(index); - onChanged(); - } else { - reportsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1beta.RunReportResponse.Builder getReportsBuilder(int index) { - return getReportsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1beta.RunReportResponseOrBuilder getReportsOrBuilder( - int index) { - if (reportsBuilder_ == null) { - return reports_.get(index); - } else { - return reportsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public java.util.List - getReportsOrBuilderList() { - if (reportsBuilder_ != null) { - return reportsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reports_); - } - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1beta.RunReportResponse.Builder addReportsBuilder() { - return getReportsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.RunReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1beta.RunReportResponse.Builder addReportsBuilder(int index) { - return getReportsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.RunReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - public java.util.List - getReportsBuilderList() { - return getReportsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunReportResponse, - com.google.analytics.data.v1beta.RunReportResponse.Builder, - com.google.analytics.data.v1beta.RunReportResponseOrBuilder> - getReportsFieldBuilder() { - if (reportsBuilder_ == null) { - reportsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.RunReportResponse, - com.google.analytics.data.v1beta.RunReportResponse.Builder, - com.google.analytics.data.v1beta.RunReportResponseOrBuilder>( - reports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - reports_ = null; - } - return reportsBuilder_; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 2; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 2; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 2; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 2; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 2; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kind_ = 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.analytics.data.v1beta.BatchRunReportsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.BatchRunReportsResponse) - private static final com.google.analytics.data.v1beta.BatchRunReportsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.BatchRunReportsResponse(); - } - - public static com.google.analytics.data.v1beta.BatchRunReportsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRunReportsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunReportsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.BatchRunReportsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponseOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponseOrBuilder.java deleted file mode 100644 index 1fd1ce9e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponseOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface BatchRunReportsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.BatchRunReportsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - java.util.List getReportsList(); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - com.google.analytics.data.v1beta.RunReportResponse getReports(int index); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - int getReportsCount(); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - java.util.List - getReportsOrBuilderList(); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - com.google.analytics.data.v1beta.RunReportResponseOrBuilder getReportsOrBuilder(int index); - - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#batchRunReports". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 2; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java deleted file mode 100644 index d76d84c4..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java +++ /dev/null @@ -1,2467 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The request for compatibility information for a report's dimensions and
- * metrics. Check compatibility provides a preview of the compatibility of a
- * report; fields shared with the `runReport` request should be the same values
- * as in your `runReport` request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CheckCompatibilityRequest} - */ -public final class CheckCompatibilityRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.CheckCompatibilityRequest) - CheckCompatibilityRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckCompatibilityRequest.newBuilder() to construct. - private CheckCompatibilityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CheckCompatibilityRequest() { - property_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - compatibilityFilter_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CheckCompatibilityRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CheckCompatibilityRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - property_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metrics_.add( - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry)); - break; - } - case 34: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - compatibilityFilter_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CheckCompatibilityRequest.class, - com.google.analytics.data.v1beta.CheckCompatibilityRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked. To
-   * learn more, see [where to find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * `property` should be the same value as in your `runReport` request.
-   * Example: properties/1234
-   * Set the Property ID to 0 for compatibility checking on dimensions and
-   * metrics common to all properties. In this special mode, this method will
-   * not return custom dimensions and metrics.
-   * 
- * - * string property = 1; - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked. To
-   * learn more, see [where to find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * `property` should be the same value as in your `runReport` request.
-   * Example: properties/1234
-   * Set the Property ID to 0 for compatibility checking on dimensions and
-   * metrics common to all properties. In this special mode, this method will
-   * not return custom dimensions and metrics.
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 4; - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - /** - * - * - *
-   * The filter clause of dimensions. `dimensionFilter` should be the same value
-   * as in your `runReport` request.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - * - * - *
-   * The filter clause of dimensions. `dimensionFilter` should be the same value
-   * as in your `runReport` request.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - /** - * - * - *
-   * The filter clause of dimensions. `dimensionFilter` should be the same value
-   * as in your `runReport` request.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - /** - * - * - *
-   * The filter clause of metrics. `metricFilter` should be the same value as in
-   * your `runReport` request
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - * - * - *
-   * The filter clause of metrics. `metricFilter` should be the same value as in
-   * your `runReport` request
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - /** - * - * - *
-   * The filter clause of metrics. `metricFilter` should be the same value as in
-   * your `runReport` request
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - public static final int COMPATIBILITY_FILTER_FIELD_NUMBER = 6; - private int compatibilityFilter_; - /** - * - * - *
-   * Filters the dimensions and metrics in the response to just this
-   * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-   * to only return compatible dimensions & metrics.
-   * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return The enum numeric value on the wire for compatibilityFilter. - */ - @java.lang.Override - public int getCompatibilityFilterValue() { - return compatibilityFilter_; - } - /** - * - * - *
-   * Filters the dimensions and metrics in the response to just this
-   * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-   * to only return compatible dimensions & metrics.
-   * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return The compatibilityFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Compatibility getCompatibilityFilter() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Compatibility result = - com.google.analytics.data.v1beta.Compatibility.valueOf(compatibilityFilter_); - return result == null ? com.google.analytics.data.v1beta.Compatibility.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(4, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(5, getMetricFilter()); - } - if (compatibilityFilter_ - != com.google.analytics.data.v1beta.Compatibility.COMPATIBILITY_UNSPECIFIED.getNumber()) { - output.writeEnum(6, compatibilityFilter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetricFilter()); - } - if (compatibilityFilter_ - != com.google.analytics.data.v1beta.Compatibility.COMPATIBILITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, compatibilityFilter_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.CheckCompatibilityRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.CheckCompatibilityRequest other = - (com.google.analytics.data.v1beta.CheckCompatibilityRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; - } - if (hasMetricFilter() != other.hasMetricFilter()) return false; - if (hasMetricFilter()) { - if (!getMetricFilter().equals(other.getMetricFilter())) return false; - } - if (compatibilityFilter_ != other.compatibilityFilter_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - if (hasMetricFilter()) { - hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getMetricFilter().hashCode(); - } - hash = (37 * hash) + COMPATIBILITY_FILTER_FIELD_NUMBER; - hash = (53 * hash) + compatibilityFilter_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.CheckCompatibilityRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request for compatibility information for a report's dimensions and
-   * metrics. Check compatibility provides a preview of the compatibility of a
-   * report; fields shared with the `runReport` request should be the same values
-   * as in your `runReport` request.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CheckCompatibilityRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.CheckCompatibilityRequest) - com.google.analytics.data.v1beta.CheckCompatibilityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CheckCompatibilityRequest.class, - com.google.analytics.data.v1beta.CheckCompatibilityRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.CheckCompatibilityRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionsBuilder_.clear(); - } - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricsBuilder_.clear(); - } - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - compatibilityFilter_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.CheckCompatibilityRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityRequest build() { - com.google.analytics.data.v1beta.CheckCompatibilityRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityRequest buildPartial() { - com.google.analytics.data.v1beta.CheckCompatibilityRequest result = - new com.google.analytics.data.v1beta.CheckCompatibilityRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - result.compatibilityFilter_ = compatibilityFilter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.CheckCompatibilityRequest) { - return mergeFrom((com.google.analytics.data.v1beta.CheckCompatibilityRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.CheckCompatibilityRequest other) { - if (other == com.google.analytics.data.v1beta.CheckCompatibilityRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionsFieldBuilder() - : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (other.compatibilityFilter_ != 0) { - setCompatibilityFilterValue(other.getCompatibilityFilterValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.CheckCompatibilityRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.CheckCompatibilityRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked. To
-     * learn more, see [where to find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * `property` should be the same value as in your `runReport` request.
-     * Example: properties/1234
-     * Set the Property ID to 0 for compatibility checking on dimensions and
-     * metrics common to all properties. In this special mode, this method will
-     * not return custom dimensions and metrics.
-     * 
- * - * string property = 1; - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked. To
-     * learn more, see [where to find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * `property` should be the same value as in your `runReport` request.
-     * Example: properties/1234
-     * Set the Property ID to 0 for compatibility checking on dimensions and
-     * metrics common to all properties. In this special mode, this method will
-     * not return custom dimensions and metrics.
-     * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked. To
-     * learn more, see [where to find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * `property` should be the same value as in your `runReport` request.
-     * Example: properties/1234
-     * Set the Property ID to 0 for compatibility checking on dimensions and
-     * metrics common to all properties. In this special mode, this method will
-     * not return custom dimensions and metrics.
-     * 
- * - * string property = 1; - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked. To
-     * learn more, see [where to find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * `property` should be the same value as in your `runReport` request.
-     * Example: properties/1234
-     * Set the Property ID to 0 for compatibility checking on dimensions and
-     * metrics common to all properties. In this special mode, this method will
-     * not return custom dimensions and metrics.
-     * 
- * - * string property = 1; - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked. To
-     * learn more, see [where to find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * `property` should be the same value as in your `runReport` request.
-     * Example: properties/1234
-     * Set the Property ID to 0 for compatibility checking on dimensions and
-     * metrics common to all properties. In this special mode, this method will
-     * not return custom dimensions and metrics.
-     * 
- * - * string property = 1; - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(dimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder getDimensionsBuilder(int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions in this report. `dimensions` should be the same value as in
-     * your `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder>( - dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics in this report. `metrics` should be the same value as in your
-     * `runReport` request.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - dimensionFilterBuilder_; - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return dimensionFilterBuilder_ != null || dimensionFilter_ != null; - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(dimensionFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionFilter_ = value; - } - onChanged(); - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder clearDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - onChanged(); - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFilterBuilder() { - - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - } - /** - * - * - *
-     * The filter clause of dimensions. `dimensionFilter` should be the same value
-     * as in your `runReport` request.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - metricFilterBuilder_; - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return metricFilterBuilder_ != null || metricFilter_ != null; - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - onChanged(); - } else { - metricFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - onChanged(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(metricFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - metricFilter_ = value; - } - onChanged(); - } else { - metricFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder clearMetricFilter() { - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - onChanged(); - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getMetricFilterBuilder() { - - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - } - /** - * - * - *
-     * The filter clause of metrics. `metricFilter` should be the same value as in
-     * your `runReport` request
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private int compatibilityFilter_ = 0; - /** - * - * - *
-     * Filters the dimensions and metrics in the response to just this
-     * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-     * to only return compatible dimensions & metrics.
-     * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return The enum numeric value on the wire for compatibilityFilter. - */ - @java.lang.Override - public int getCompatibilityFilterValue() { - return compatibilityFilter_; - } - /** - * - * - *
-     * Filters the dimensions and metrics in the response to just this
-     * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-     * to only return compatible dimensions & metrics.
-     * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @param value The enum numeric value on the wire for compatibilityFilter to set. - * @return This builder for chaining. - */ - public Builder setCompatibilityFilterValue(int value) { - - compatibilityFilter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filters the dimensions and metrics in the response to just this
-     * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-     * to only return compatible dimensions & metrics.
-     * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return The compatibilityFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Compatibility getCompatibilityFilter() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Compatibility result = - com.google.analytics.data.v1beta.Compatibility.valueOf(compatibilityFilter_); - return result == null ? com.google.analytics.data.v1beta.Compatibility.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Filters the dimensions and metrics in the response to just this
-     * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-     * to only return compatible dimensions & metrics.
-     * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @param value The compatibilityFilter to set. - * @return This builder for chaining. - */ - public Builder setCompatibilityFilter(com.google.analytics.data.v1beta.Compatibility value) { - if (value == null) { - throw new NullPointerException(); - } - - compatibilityFilter_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filters the dimensions and metrics in the response to just this
-     * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-     * to only return compatible dimensions & metrics.
-     * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return This builder for chaining. - */ - public Builder clearCompatibilityFilter() { - - compatibilityFilter_ = 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.analytics.data.v1beta.CheckCompatibilityRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.CheckCompatibilityRequest) - private static final com.google.analytics.data.v1beta.CheckCompatibilityRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.CheckCompatibilityRequest(); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckCompatibilityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckCompatibilityRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java deleted file mode 100644 index fcce7901..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface CheckCompatibilityRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.CheckCompatibilityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked. To
-   * learn more, see [where to find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * `property` should be the same value as in your `runReport` request.
-   * Example: properties/1234
-   * Set the Property ID to 0 for compatibility checking on dimensions and
-   * metrics common to all properties. In this special mode, this method will
-   * not return custom dimensions and metrics.
-   * 
- * - * string property = 1; - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked. To
-   * learn more, see [where to find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * `property` should be the same value as in your `runReport` request.
-   * Example: properties/1234
-   * Set the Property ID to 0 for compatibility checking on dimensions and
-   * metrics common to all properties. In this special mode, this method will
-   * not return custom dimensions and metrics.
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.Dimension getDimensions(int index); - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions in this report. `dimensions` should be the same value as in
-   * your `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.Metric getMetrics(int index); - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics in this report. `metrics` should be the same value as in your
-   * `runReport` request.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * The filter clause of dimensions. `dimensionFilter` should be the same value
-   * as in your `runReport` request.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - * - * - *
-   * The filter clause of dimensions. `dimensionFilter` should be the same value
-   * as in your `runReport` request.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getDimensionFilter(); - /** - * - * - *
-   * The filter clause of dimensions. `dimensionFilter` should be the same value
-   * as in your `runReport` request.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - * - * - *
-   * The filter clause of metrics. `metricFilter` should be the same value as in
-   * your `runReport` request
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. `metricFilter` should be the same value as in
-   * your `runReport` request
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. `metricFilter` should be the same value as in
-   * your `runReport` request
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * Filters the dimensions and metrics in the response to just this
-   * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-   * to only return compatible dimensions & metrics.
-   * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return The enum numeric value on the wire for compatibilityFilter. - */ - int getCompatibilityFilterValue(); - /** - * - * - *
-   * Filters the dimensions and metrics in the response to just this
-   * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”`
-   * to only return compatible dimensions & metrics.
-   * 
- * - * .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * - * @return The compatibilityFilter. - */ - com.google.analytics.data.v1beta.Compatibility getCompatibilityFilter(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java deleted file mode 100644 index d4bdc8c6..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java +++ /dev/null @@ -1,1561 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The compatibility response with the compatibility of each dimension & metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CheckCompatibilityResponse} - */ -public final class CheckCompatibilityResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.CheckCompatibilityResponse) - CheckCompatibilityResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckCompatibilityResponse.newBuilder() to construct. - private CheckCompatibilityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CheckCompatibilityResponse() { - dimensionCompatibilities_ = java.util.Collections.emptyList(); - metricCompatibilities_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CheckCompatibilityResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CheckCompatibilityResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionCompatibilities_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.DimensionCompatibility>(); - mutable_bitField0_ |= 0x00000001; - } - dimensionCompatibilities_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionCompatibility.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metricCompatibilities_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metricCompatibilities_.add( - input.readMessage( - com.google.analytics.data.v1beta.MetricCompatibility.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionCompatibilities_ = - java.util.Collections.unmodifiableList(dimensionCompatibilities_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metricCompatibilities_ = java.util.Collections.unmodifiableList(metricCompatibilities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CheckCompatibilityResponse.class, - com.google.analytics.data.v1beta.CheckCompatibilityResponse.Builder.class); - } - - public static final int DIMENSION_COMPATIBILITIES_FIELD_NUMBER = 1; - private java.util.List - dimensionCompatibilities_; - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - @java.lang.Override - public java.util.List - getDimensionCompatibilitiesList() { - return dimensionCompatibilities_; - } - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - @java.lang.Override - public java.util.List - getDimensionCompatibilitiesOrBuilderList() { - return dimensionCompatibilities_; - } - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - @java.lang.Override - public int getDimensionCompatibilitiesCount() { - return dimensionCompatibilities_.size(); - } - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionCompatibility getDimensionCompatibilities( - int index) { - return dimensionCompatibilities_.get(index); - } - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder - getDimensionCompatibilitiesOrBuilder(int index) { - return dimensionCompatibilities_.get(index); - } - - public static final int METRIC_COMPATIBILITIES_FIELD_NUMBER = 2; - private java.util.List - metricCompatibilities_; - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - @java.lang.Override - public java.util.List - getMetricCompatibilitiesList() { - return metricCompatibilities_; - } - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - @java.lang.Override - public java.util.List - getMetricCompatibilitiesOrBuilderList() { - return metricCompatibilities_; - } - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - @java.lang.Override - public int getMetricCompatibilitiesCount() { - return metricCompatibilities_.size(); - } - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricCompatibility getMetricCompatibilities(int index) { - return metricCompatibilities_.get(index); - } - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder - getMetricCompatibilitiesOrBuilder(int index) { - return metricCompatibilities_.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 < dimensionCompatibilities_.size(); i++) { - output.writeMessage(1, dimensionCompatibilities_.get(i)); - } - for (int i = 0; i < metricCompatibilities_.size(); i++) { - output.writeMessage(2, metricCompatibilities_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionCompatibilities_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, dimensionCompatibilities_.get(i)); - } - for (int i = 0; i < metricCompatibilities_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, metricCompatibilities_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.CheckCompatibilityResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.CheckCompatibilityResponse other = - (com.google.analytics.data.v1beta.CheckCompatibilityResponse) obj; - - if (!getDimensionCompatibilitiesList().equals(other.getDimensionCompatibilitiesList())) - return false; - if (!getMetricCompatibilitiesList().equals(other.getMetricCompatibilitiesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionCompatibilitiesCount() > 0) { - hash = (37 * hash) + DIMENSION_COMPATIBILITIES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionCompatibilitiesList().hashCode(); - } - if (getMetricCompatibilitiesCount() > 0) { - hash = (37 * hash) + METRIC_COMPATIBILITIES_FIELD_NUMBER; - hash = (53 * hash) + getMetricCompatibilitiesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.CheckCompatibilityResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 compatibility response with the compatibility of each dimension & metric.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CheckCompatibilityResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.CheckCompatibilityResponse) - com.google.analytics.data.v1beta.CheckCompatibilityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CheckCompatibilityResponse.class, - com.google.analytics.data.v1beta.CheckCompatibilityResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.CheckCompatibilityResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionCompatibilitiesFieldBuilder(); - getMetricCompatibilitiesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionCompatibilitiesBuilder_ == null) { - dimensionCompatibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionCompatibilitiesBuilder_.clear(); - } - if (metricCompatibilitiesBuilder_ == null) { - metricCompatibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricCompatibilitiesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_CheckCompatibilityResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.CheckCompatibilityResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityResponse build() { - com.google.analytics.data.v1beta.CheckCompatibilityResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityResponse buildPartial() { - com.google.analytics.data.v1beta.CheckCompatibilityResponse result = - new com.google.analytics.data.v1beta.CheckCompatibilityResponse(this); - int from_bitField0_ = bitField0_; - if (dimensionCompatibilitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionCompatibilities_ = - java.util.Collections.unmodifiableList(dimensionCompatibilities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionCompatibilities_ = dimensionCompatibilities_; - } else { - result.dimensionCompatibilities_ = dimensionCompatibilitiesBuilder_.build(); - } - if (metricCompatibilitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricCompatibilities_ = java.util.Collections.unmodifiableList(metricCompatibilities_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricCompatibilities_ = metricCompatibilities_; - } else { - result.metricCompatibilities_ = metricCompatibilitiesBuilder_.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.analytics.data.v1beta.CheckCompatibilityResponse) { - return mergeFrom((com.google.analytics.data.v1beta.CheckCompatibilityResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.CheckCompatibilityResponse other) { - if (other == com.google.analytics.data.v1beta.CheckCompatibilityResponse.getDefaultInstance()) - return this; - if (dimensionCompatibilitiesBuilder_ == null) { - if (!other.dimensionCompatibilities_.isEmpty()) { - if (dimensionCompatibilities_.isEmpty()) { - dimensionCompatibilities_ = other.dimensionCompatibilities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.addAll(other.dimensionCompatibilities_); - } - onChanged(); - } - } else { - if (!other.dimensionCompatibilities_.isEmpty()) { - if (dimensionCompatibilitiesBuilder_.isEmpty()) { - dimensionCompatibilitiesBuilder_.dispose(); - dimensionCompatibilitiesBuilder_ = null; - dimensionCompatibilities_ = other.dimensionCompatibilities_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionCompatibilitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionCompatibilitiesFieldBuilder() - : null; - } else { - dimensionCompatibilitiesBuilder_.addAllMessages(other.dimensionCompatibilities_); - } - } - } - if (metricCompatibilitiesBuilder_ == null) { - if (!other.metricCompatibilities_.isEmpty()) { - if (metricCompatibilities_.isEmpty()) { - metricCompatibilities_ = other.metricCompatibilities_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.addAll(other.metricCompatibilities_); - } - onChanged(); - } - } else { - if (!other.metricCompatibilities_.isEmpty()) { - if (metricCompatibilitiesBuilder_.isEmpty()) { - metricCompatibilitiesBuilder_.dispose(); - metricCompatibilitiesBuilder_ = null; - metricCompatibilities_ = other.metricCompatibilities_; - bitField0_ = (bitField0_ & ~0x00000002); - metricCompatibilitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricCompatibilitiesFieldBuilder() - : null; - } else { - metricCompatibilitiesBuilder_.addAllMessages(other.metricCompatibilities_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.CheckCompatibilityResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.CheckCompatibilityResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - dimensionCompatibilities_ = java.util.Collections.emptyList(); - - private void ensureDimensionCompatibilitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionCompatibilities_ = - new java.util.ArrayList( - dimensionCompatibilities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionCompatibility, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder, - com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder> - dimensionCompatibilitiesBuilder_; - - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public java.util.List - getDimensionCompatibilitiesList() { - if (dimensionCompatibilitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionCompatibilities_); - } else { - return dimensionCompatibilitiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public int getDimensionCompatibilitiesCount() { - if (dimensionCompatibilitiesBuilder_ == null) { - return dimensionCompatibilities_.size(); - } else { - return dimensionCompatibilitiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public com.google.analytics.data.v1beta.DimensionCompatibility getDimensionCompatibilities( - int index) { - if (dimensionCompatibilitiesBuilder_ == null) { - return dimensionCompatibilities_.get(index); - } else { - return dimensionCompatibilitiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder setDimensionCompatibilities( - int index, com.google.analytics.data.v1beta.DimensionCompatibility value) { - if (dimensionCompatibilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.set(index, value); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder setDimensionCompatibilities( - int index, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder builderForValue) { - if (dimensionCompatibilitiesBuilder_ == null) { - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder addDimensionCompatibilities( - com.google.analytics.data.v1beta.DimensionCompatibility value) { - if (dimensionCompatibilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.add(value); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder addDimensionCompatibilities( - int index, com.google.analytics.data.v1beta.DimensionCompatibility value) { - if (dimensionCompatibilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.add(index, value); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder addDimensionCompatibilities( - com.google.analytics.data.v1beta.DimensionCompatibility.Builder builderForValue) { - if (dimensionCompatibilitiesBuilder_ == null) { - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.add(builderForValue.build()); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder addDimensionCompatibilities( - int index, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder builderForValue) { - if (dimensionCompatibilitiesBuilder_ == null) { - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder addAllDimensionCompatibilities( - java.lang.Iterable - values) { - if (dimensionCompatibilitiesBuilder_ == null) { - ensureDimensionCompatibilitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionCompatibilities_); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder clearDimensionCompatibilities() { - if (dimensionCompatibilitiesBuilder_ == null) { - dimensionCompatibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public Builder removeDimensionCompatibilities(int index) { - if (dimensionCompatibilitiesBuilder_ == null) { - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.remove(index); - onChanged(); - } else { - dimensionCompatibilitiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public com.google.analytics.data.v1beta.DimensionCompatibility.Builder - getDimensionCompatibilitiesBuilder(int index) { - return getDimensionCompatibilitiesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder - getDimensionCompatibilitiesOrBuilder(int index) { - if (dimensionCompatibilitiesBuilder_ == null) { - return dimensionCompatibilities_.get(index); - } else { - return dimensionCompatibilitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder> - getDimensionCompatibilitiesOrBuilderList() { - if (dimensionCompatibilitiesBuilder_ != null) { - return dimensionCompatibilitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionCompatibilities_); - } - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public com.google.analytics.data.v1beta.DimensionCompatibility.Builder - addDimensionCompatibilitiesBuilder() { - return getDimensionCompatibilitiesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionCompatibility.getDefaultInstance()); - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public com.google.analytics.data.v1beta.DimensionCompatibility.Builder - addDimensionCompatibilitiesBuilder(int index) { - return getDimensionCompatibilitiesFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.DimensionCompatibility.getDefaultInstance()); - } - /** - * - * - *
-     * The compatibility of each dimension.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - public java.util.List - getDimensionCompatibilitiesBuilderList() { - return getDimensionCompatibilitiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionCompatibility, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder, - com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder> - getDimensionCompatibilitiesFieldBuilder() { - if (dimensionCompatibilitiesBuilder_ == null) { - dimensionCompatibilitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionCompatibility, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder, - com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder>( - dimensionCompatibilities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionCompatibilities_ = null; - } - return dimensionCompatibilitiesBuilder_; - } - - private java.util.List - metricCompatibilities_ = java.util.Collections.emptyList(); - - private void ensureMetricCompatibilitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricCompatibilities_ = - new java.util.ArrayList( - metricCompatibilities_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricCompatibility, - com.google.analytics.data.v1beta.MetricCompatibility.Builder, - com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder> - metricCompatibilitiesBuilder_; - - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public java.util.List - getMetricCompatibilitiesList() { - if (metricCompatibilitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricCompatibilities_); - } else { - return metricCompatibilitiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public int getMetricCompatibilitiesCount() { - if (metricCompatibilitiesBuilder_ == null) { - return metricCompatibilities_.size(); - } else { - return metricCompatibilitiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public com.google.analytics.data.v1beta.MetricCompatibility getMetricCompatibilities( - int index) { - if (metricCompatibilitiesBuilder_ == null) { - return metricCompatibilities_.get(index); - } else { - return metricCompatibilitiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder setMetricCompatibilities( - int index, com.google.analytics.data.v1beta.MetricCompatibility value) { - if (metricCompatibilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.set(index, value); - onChanged(); - } else { - metricCompatibilitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder setMetricCompatibilities( - int index, com.google.analytics.data.v1beta.MetricCompatibility.Builder builderForValue) { - if (metricCompatibilitiesBuilder_ == null) { - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.set(index, builderForValue.build()); - onChanged(); - } else { - metricCompatibilitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder addMetricCompatibilities( - com.google.analytics.data.v1beta.MetricCompatibility value) { - if (metricCompatibilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.add(value); - onChanged(); - } else { - metricCompatibilitiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder addMetricCompatibilities( - int index, com.google.analytics.data.v1beta.MetricCompatibility value) { - if (metricCompatibilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.add(index, value); - onChanged(); - } else { - metricCompatibilitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder addMetricCompatibilities( - com.google.analytics.data.v1beta.MetricCompatibility.Builder builderForValue) { - if (metricCompatibilitiesBuilder_ == null) { - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.add(builderForValue.build()); - onChanged(); - } else { - metricCompatibilitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder addMetricCompatibilities( - int index, com.google.analytics.data.v1beta.MetricCompatibility.Builder builderForValue) { - if (metricCompatibilitiesBuilder_ == null) { - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.add(index, builderForValue.build()); - onChanged(); - } else { - metricCompatibilitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder addAllMetricCompatibilities( - java.lang.Iterable values) { - if (metricCompatibilitiesBuilder_ == null) { - ensureMetricCompatibilitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricCompatibilities_); - onChanged(); - } else { - metricCompatibilitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder clearMetricCompatibilities() { - if (metricCompatibilitiesBuilder_ == null) { - metricCompatibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricCompatibilitiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public Builder removeMetricCompatibilities(int index) { - if (metricCompatibilitiesBuilder_ == null) { - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.remove(index); - onChanged(); - } else { - metricCompatibilitiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public com.google.analytics.data.v1beta.MetricCompatibility.Builder - getMetricCompatibilitiesBuilder(int index) { - return getMetricCompatibilitiesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder - getMetricCompatibilitiesOrBuilder(int index) { - if (metricCompatibilitiesBuilder_ == null) { - return metricCompatibilities_.get(index); - } else { - return metricCompatibilitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public java.util.List - getMetricCompatibilitiesOrBuilderList() { - if (metricCompatibilitiesBuilder_ != null) { - return metricCompatibilitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricCompatibilities_); - } - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public com.google.analytics.data.v1beta.MetricCompatibility.Builder - addMetricCompatibilitiesBuilder() { - return getMetricCompatibilitiesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MetricCompatibility.getDefaultInstance()); - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public com.google.analytics.data.v1beta.MetricCompatibility.Builder - addMetricCompatibilitiesBuilder(int index) { - return getMetricCompatibilitiesFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.MetricCompatibility.getDefaultInstance()); - } - /** - * - * - *
-     * The compatibility of each metric.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - public java.util.List - getMetricCompatibilitiesBuilderList() { - return getMetricCompatibilitiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricCompatibility, - com.google.analytics.data.v1beta.MetricCompatibility.Builder, - com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder> - getMetricCompatibilitiesFieldBuilder() { - if (metricCompatibilitiesBuilder_ == null) { - metricCompatibilitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricCompatibility, - com.google.analytics.data.v1beta.MetricCompatibility.Builder, - com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder>( - metricCompatibilities_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricCompatibilities_ = null; - } - return metricCompatibilitiesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.CheckCompatibilityResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.CheckCompatibilityResponse) - private static final com.google.analytics.data.v1beta.CheckCompatibilityResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.CheckCompatibilityResponse(); - } - - public static com.google.analytics.data.v1beta.CheckCompatibilityResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckCompatibilityResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckCompatibilityResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CheckCompatibilityResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponseOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponseOrBuilder.java deleted file mode 100644 index 820ea15c..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponseOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface CheckCompatibilityResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.CheckCompatibilityResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - java.util.List - getDimensionCompatibilitiesList(); - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - com.google.analytics.data.v1beta.DimensionCompatibility getDimensionCompatibilities(int index); - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - int getDimensionCompatibilitiesCount(); - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - java.util.List - getDimensionCompatibilitiesOrBuilderList(); - /** - * - * - *
-   * The compatibility of each dimension.
-   * 
- * - * - * repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * - */ - com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder - getDimensionCompatibilitiesOrBuilder(int index); - - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - java.util.List - getMetricCompatibilitiesList(); - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - com.google.analytics.data.v1beta.MetricCompatibility getMetricCompatibilities(int index); - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - int getMetricCompatibilitiesCount(); - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - java.util.List - getMetricCompatibilitiesOrBuilderList(); - /** - * - * - *
-   * The compatibility of each metric.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * - */ - com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder getMetricCompatibilitiesOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Cohort.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Cohort.java deleted file mode 100644 index cfbf8c85..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Cohort.java +++ /dev/null @@ -1,1278 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Defines a cohort selection criteria. A cohort is a group of users who share
- * a common characteristic. For example, users with the same `firstSessionDate`
- * belong to the same cohort.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Cohort} - */ -public final class Cohort extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Cohort) - CohortOrBuilder { - private static final long serialVersionUID = 0L; - // Use Cohort.newBuilder() to construct. - private Cohort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Cohort() { - name_ = ""; - dimension_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Cohort(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Cohort( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - dimension_ = s; - break; - } - case 26: - { - com.google.analytics.data.v1beta.DateRange.Builder subBuilder = null; - if (dateRange_ != null) { - subBuilder = dateRange_.toBuilder(); - } - dateRange_ = - input.readMessage( - com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dateRange_); - dateRange_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Cohort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Cohort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Cohort.class, - com.google.analytics.data.v1beta.Cohort.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Assigns a name to this cohort. The dimension `cohort` is valued to this
-   * name in a report response. If set, cannot begin with `cohort_` or
-   * `RESERVED_`. If not set, cohorts are named by their zero based index
-   * `cohort_0`, `cohort_1`, etc.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Assigns a name to this cohort. The dimension `cohort` is valued to this
-   * name in a report response. If set, cannot begin with `cohort_` or
-   * `RESERVED_`. If not set, cohorts are named by their zero based index
-   * `cohort_0`, `cohort_1`, etc.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - private volatile java.lang.Object dimension_; - /** - * - * - *
-   * Dimension used by the cohort. Required and only supports
-   * `firstSessionDate`.
-   * 
- * - * string dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public java.lang.String getDimension() { - java.lang.Object ref = dimension_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimension_ = s; - return s; - } - } - /** - * - * - *
-   * Dimension used by the cohort. Required and only supports
-   * `firstSessionDate`.
-   * 
- * - * string dimension = 2; - * - * @return The bytes for dimension. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionBytes() { - java.lang.Object ref = dimension_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimension_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATE_RANGE_FIELD_NUMBER = 3; - private com.google.analytics.data.v1beta.DateRange dateRange_; - /** - * - * - *
-   * The cohort selects users whose first touch date is between start date and
-   * end date defined in the `dateRange`. This `dateRange` does not specify the
-   * full date range of event data that is present in a cohort report. In a
-   * cohort report, this `dateRange` is extended by the granularity and offset
-   * present in the `cohortsRange`; event data for the extended reporting date
-   * range is present in a cohort report.
-   * In a cohort request, this `dateRange` is required and the `dateRanges` in
-   * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-   * This `dateRange` should generally be aligned with the cohort's granularity.
-   * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-   * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-   * aligned to a week boundary, starting at Sunday and ending Saturday. If
-   * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-   * a month, starting at the first and ending on the last day of the month.
-   * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - * - * @return Whether the dateRange field is set. - */ - @java.lang.Override - public boolean hasDateRange() { - return dateRange_ != null; - } - /** - * - * - *
-   * The cohort selects users whose first touch date is between start date and
-   * end date defined in the `dateRange`. This `dateRange` does not specify the
-   * full date range of event data that is present in a cohort report. In a
-   * cohort report, this `dateRange` is extended by the granularity and offset
-   * present in the `cohortsRange`; event data for the extended reporting date
-   * range is present in a cohort report.
-   * In a cohort request, this `dateRange` is required and the `dateRanges` in
-   * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-   * This `dateRange` should generally be aligned with the cohort's granularity.
-   * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-   * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-   * aligned to a week boundary, starting at Sunday and ending Saturday. If
-   * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-   * a month, starting at the first and ending on the last day of the month.
-   * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - * - * @return The dateRange. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange getDateRange() { - return dateRange_ == null - ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() - : dateRange_; - } - /** - * - * - *
-   * The cohort selects users whose first touch date is between start date and
-   * end date defined in the `dateRange`. This `dateRange` does not specify the
-   * full date range of event data that is present in a cohort report. In a
-   * cohort report, this `dateRange` is extended by the granularity and offset
-   * present in the `cohortsRange`; event data for the extended reporting date
-   * range is present in a cohort report.
-   * In a cohort request, this `dateRange` is required and the `dateRanges` in
-   * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-   * This `dateRange` should generally be aligned with the cohort's granularity.
-   * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-   * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-   * aligned to a week boundary, starting at Sunday and ending Saturday. If
-   * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-   * a month, starting at the first and ending on the last day of the month.
-   * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangeOrBuilder() { - return getDateRange(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimension_); - } - if (dateRange_ != null) { - output.writeMessage(3, getDateRange()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimension_); - } - if (dateRange_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDateRange()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Cohort)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Cohort other = (com.google.analytics.data.v1beta.Cohort) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDimension().equals(other.getDimension())) return false; - if (hasDateRange() != other.hasDateRange()) return false; - if (hasDateRange()) { - if (!getDateRange().equals(other.getDateRange())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getDimension().hashCode(); - if (hasDateRange()) { - hash = (37 * hash) + DATE_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getDateRange().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Cohort parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Cohort parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Cohort parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Cohort prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 cohort selection criteria. A cohort is a group of users who share
-   * a common characteristic. For example, users with the same `firstSessionDate`
-   * belong to the same cohort.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Cohort} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Cohort) - com.google.analytics.data.v1beta.CohortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Cohort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Cohort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Cohort.class, - com.google.analytics.data.v1beta.Cohort.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Cohort.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - dimension_ = ""; - - if (dateRangeBuilder_ == null) { - dateRange_ = null; - } else { - dateRange_ = null; - dateRangeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Cohort_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Cohort getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Cohort.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Cohort build() { - com.google.analytics.data.v1beta.Cohort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Cohort buildPartial() { - com.google.analytics.data.v1beta.Cohort result = - new com.google.analytics.data.v1beta.Cohort(this); - result.name_ = name_; - result.dimension_ = dimension_; - if (dateRangeBuilder_ == null) { - result.dateRange_ = dateRange_; - } else { - result.dateRange_ = dateRangeBuilder_.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.analytics.data.v1beta.Cohort) { - return mergeFrom((com.google.analytics.data.v1beta.Cohort) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Cohort other) { - if (other == com.google.analytics.data.v1beta.Cohort.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDimension().isEmpty()) { - dimension_ = other.dimension_; - onChanged(); - } - if (other.hasDateRange()) { - mergeDateRange(other.getDateRange()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Cohort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Cohort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Assigns a name to this cohort. The dimension `cohort` is valued to this
-     * name in a report response. If set, cannot begin with `cohort_` or
-     * `RESERVED_`. If not set, cohorts are named by their zero based index
-     * `cohort_0`, `cohort_1`, etc.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Assigns a name to this cohort. The dimension `cohort` is valued to this
-     * name in a report response. If set, cannot begin with `cohort_` or
-     * `RESERVED_`. If not set, cohorts are named by their zero based index
-     * `cohort_0`, `cohort_1`, etc.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Assigns a name to this cohort. The dimension `cohort` is valued to this
-     * name in a report response. If set, cannot begin with `cohort_` or
-     * `RESERVED_`. If not set, cohorts are named by their zero based index
-     * `cohort_0`, `cohort_1`, etc.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Assigns a name to this cohort. The dimension `cohort` is valued to this
-     * name in a report response. If set, cannot begin with `cohort_` or
-     * `RESERVED_`. If not set, cohorts are named by their zero based index
-     * `cohort_0`, `cohort_1`, etc.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Assigns a name to this cohort. The dimension `cohort` is valued to this
-     * name in a report response. If set, cannot begin with `cohort_` or
-     * `RESERVED_`. If not set, cohorts are named by their zero based index
-     * `cohort_0`, `cohort_1`, etc.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object dimension_ = ""; - /** - * - * - *
-     * Dimension used by the cohort. Required and only supports
-     * `firstSessionDate`.
-     * 
- * - * string dimension = 2; - * - * @return The dimension. - */ - public java.lang.String getDimension() { - java.lang.Object ref = dimension_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimension_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Dimension used by the cohort. Required and only supports
-     * `firstSessionDate`.
-     * 
- * - * string dimension = 2; - * - * @return The bytes for dimension. - */ - public com.google.protobuf.ByteString getDimensionBytes() { - java.lang.Object ref = dimension_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimension_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Dimension used by the cohort. Required and only supports
-     * `firstSessionDate`.
-     * 
- * - * string dimension = 2; - * - * @param value The dimension to set. - * @return This builder for chaining. - */ - public Builder setDimension(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimension_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Dimension used by the cohort. Required and only supports
-     * `firstSessionDate`.
-     * 
- * - * string dimension = 2; - * - * @return This builder for chaining. - */ - public Builder clearDimension() { - - dimension_ = getDefaultInstance().getDimension(); - onChanged(); - return this; - } - /** - * - * - *
-     * Dimension used by the cohort. Required and only supports
-     * `firstSessionDate`.
-     * 
- * - * string dimension = 2; - * - * @param value The bytes for dimension to set. - * @return This builder for chaining. - */ - public Builder setDimensionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimension_ = value; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.DateRange dateRange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder> - dateRangeBuilder_; - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - * - * @return Whether the dateRange field is set. - */ - public boolean hasDateRange() { - return dateRangeBuilder_ != null || dateRange_ != null; - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - * - * @return The dateRange. - */ - public com.google.analytics.data.v1beta.DateRange getDateRange() { - if (dateRangeBuilder_ == null) { - return dateRange_ == null - ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() - : dateRange_; - } else { - return dateRangeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - public Builder setDateRange(com.google.analytics.data.v1beta.DateRange value) { - if (dateRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dateRange_ = value; - onChanged(); - } else { - dateRangeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - public Builder setDateRange( - com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangeBuilder_ == null) { - dateRange_ = builderForValue.build(); - onChanged(); - } else { - dateRangeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - public Builder mergeDateRange(com.google.analytics.data.v1beta.DateRange value) { - if (dateRangeBuilder_ == null) { - if (dateRange_ != null) { - dateRange_ = - com.google.analytics.data.v1beta.DateRange.newBuilder(dateRange_) - .mergeFrom(value) - .buildPartial(); - } else { - dateRange_ = value; - } - onChanged(); - } else { - dateRangeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - public Builder clearDateRange() { - if (dateRangeBuilder_ == null) { - dateRange_ = null; - onChanged(); - } else { - dateRange_ = null; - dateRangeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - public com.google.analytics.data.v1beta.DateRange.Builder getDateRangeBuilder() { - - onChanged(); - return getDateRangeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangeOrBuilder() { - if (dateRangeBuilder_ != null) { - return dateRangeBuilder_.getMessageOrBuilder(); - } else { - return dateRange_ == null - ? com.google.analytics.data.v1beta.DateRange.getDefaultInstance() - : dateRange_; - } - } - /** - * - * - *
-     * The cohort selects users whose first touch date is between start date and
-     * end date defined in the `dateRange`. This `dateRange` does not specify the
-     * full date range of event data that is present in a cohort report. In a
-     * cohort report, this `dateRange` is extended by the granularity and offset
-     * present in the `cohortsRange`; event data for the extended reporting date
-     * range is present in a cohort report.
-     * In a cohort request, this `dateRange` is required and the `dateRanges` in
-     * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-     * This `dateRange` should generally be aligned with the cohort's granularity.
-     * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-     * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-     * aligned to a week boundary, starting at Sunday and ending Saturday. If
-     * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-     * a month, starting at the first and ending on the last day of the month.
-     * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder> - getDateRangeFieldBuilder() { - if (dateRangeBuilder_ == null) { - dateRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder>( - getDateRange(), getParentForChildren(), isClean()); - dateRange_ = null; - } - return dateRangeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Cohort) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Cohort) - private static final com.google.analytics.data.v1beta.Cohort DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Cohort(); - } - - public static com.google.analytics.data.v1beta.Cohort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cohort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cohort(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Cohort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortOrBuilder.java deleted file mode 100644 index 90348f44..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortOrBuilder.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface CohortOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Cohort) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Assigns a name to this cohort. The dimension `cohort` is valued to this
-   * name in a report response. If set, cannot begin with `cohort_` or
-   * `RESERVED_`. If not set, cohorts are named by their zero based index
-   * `cohort_0`, `cohort_1`, etc.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Assigns a name to this cohort. The dimension `cohort` is valued to this
-   * name in a report response. If set, cannot begin with `cohort_` or
-   * `RESERVED_`. If not set, cohorts are named by their zero based index
-   * `cohort_0`, `cohort_1`, etc.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Dimension used by the cohort. Required and only supports
-   * `firstSessionDate`.
-   * 
- * - * string dimension = 2; - * - * @return The dimension. - */ - java.lang.String getDimension(); - /** - * - * - *
-   * Dimension used by the cohort. Required and only supports
-   * `firstSessionDate`.
-   * 
- * - * string dimension = 2; - * - * @return The bytes for dimension. - */ - com.google.protobuf.ByteString getDimensionBytes(); - - /** - * - * - *
-   * The cohort selects users whose first touch date is between start date and
-   * end date defined in the `dateRange`. This `dateRange` does not specify the
-   * full date range of event data that is present in a cohort report. In a
-   * cohort report, this `dateRange` is extended by the granularity and offset
-   * present in the `cohortsRange`; event data for the extended reporting date
-   * range is present in a cohort report.
-   * In a cohort request, this `dateRange` is required and the `dateRanges` in
-   * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-   * This `dateRange` should generally be aligned with the cohort's granularity.
-   * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-   * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-   * aligned to a week boundary, starting at Sunday and ending Saturday. If
-   * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-   * a month, starting at the first and ending on the last day of the month.
-   * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - * - * @return Whether the dateRange field is set. - */ - boolean hasDateRange(); - /** - * - * - *
-   * The cohort selects users whose first touch date is between start date and
-   * end date defined in the `dateRange`. This `dateRange` does not specify the
-   * full date range of event data that is present in a cohort report. In a
-   * cohort report, this `dateRange` is extended by the granularity and offset
-   * present in the `cohortsRange`; event data for the extended reporting date
-   * range is present in a cohort report.
-   * In a cohort request, this `dateRange` is required and the `dateRanges` in
-   * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-   * This `dateRange` should generally be aligned with the cohort's granularity.
-   * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-   * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-   * aligned to a week boundary, starting at Sunday and ending Saturday. If
-   * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-   * a month, starting at the first and ending on the last day of the month.
-   * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - * - * @return The dateRange. - */ - com.google.analytics.data.v1beta.DateRange getDateRange(); - /** - * - * - *
-   * The cohort selects users whose first touch date is between start date and
-   * end date defined in the `dateRange`. This `dateRange` does not specify the
-   * full date range of event data that is present in a cohort report. In a
-   * cohort report, this `dateRange` is extended by the granularity and offset
-   * present in the `cohortsRange`; event data for the extended reporting date
-   * range is present in a cohort report.
-   * In a cohort request, this `dateRange` is required and the `dateRanges` in
-   * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
-   * This `dateRange` should generally be aligned with the cohort's granularity.
-   * If `CohortsRange` uses daily granularity, this `dateRange` can be a single
-   * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
-   * aligned to a week boundary, starting at Sunday and ending Saturday. If
-   * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
-   * a month, starting at the first and ending on the last day of the month.
-   * 
- * - * .google.analytics.data.v1beta.DateRange date_range = 3; - */ - com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangeOrBuilder(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettings.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettings.java deleted file mode 100644 index a7be7e46..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettings.java +++ /dev/null @@ -1,551 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Optional settings of a cohort report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CohortReportSettings} - */ -public final class CohortReportSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.CohortReportSettings) - CohortReportSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CohortReportSettings.newBuilder() to construct. - private CohortReportSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CohortReportSettings() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CohortReportSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CohortReportSettings( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - accumulate_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortReportSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CohortReportSettings.class, - com.google.analytics.data.v1beta.CohortReportSettings.Builder.class); - } - - public static final int ACCUMULATE_FIELD_NUMBER = 1; - private boolean accumulate_; - /** - * - * - *
-   * If true, accumulates the result from first touch day to the end day. Not
-   * supported in `RunReportRequest`.
-   * 
- * - * bool accumulate = 1; - * - * @return The accumulate. - */ - @java.lang.Override - public boolean getAccumulate() { - return accumulate_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (accumulate_ != false) { - output.writeBool(1, accumulate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (accumulate_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, accumulate_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.CohortReportSettings)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.CohortReportSettings other = - (com.google.analytics.data.v1beta.CohortReportSettings) obj; - - if (getAccumulate() != other.getAccumulate()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCUMULATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAccumulate()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.CohortReportSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Optional settings of a cohort report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CohortReportSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.CohortReportSettings) - com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortReportSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CohortReportSettings.class, - com.google.analytics.data.v1beta.CohortReportSettings.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.CohortReportSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - accumulate_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortReportSettings getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.CohortReportSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortReportSettings build() { - com.google.analytics.data.v1beta.CohortReportSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortReportSettings buildPartial() { - com.google.analytics.data.v1beta.CohortReportSettings result = - new com.google.analytics.data.v1beta.CohortReportSettings(this); - result.accumulate_ = accumulate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.CohortReportSettings) { - return mergeFrom((com.google.analytics.data.v1beta.CohortReportSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.CohortReportSettings other) { - if (other == com.google.analytics.data.v1beta.CohortReportSettings.getDefaultInstance()) - return this; - if (other.getAccumulate() != false) { - setAccumulate(other.getAccumulate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.CohortReportSettings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.CohortReportSettings) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean accumulate_; - /** - * - * - *
-     * If true, accumulates the result from first touch day to the end day. Not
-     * supported in `RunReportRequest`.
-     * 
- * - * bool accumulate = 1; - * - * @return The accumulate. - */ - @java.lang.Override - public boolean getAccumulate() { - return accumulate_; - } - /** - * - * - *
-     * If true, accumulates the result from first touch day to the end day. Not
-     * supported in `RunReportRequest`.
-     * 
- * - * bool accumulate = 1; - * - * @param value The accumulate to set. - * @return This builder for chaining. - */ - public Builder setAccumulate(boolean value) { - - accumulate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, accumulates the result from first touch day to the end day. Not
-     * supported in `RunReportRequest`.
-     * 
- * - * bool accumulate = 1; - * - * @return This builder for chaining. - */ - public Builder clearAccumulate() { - - accumulate_ = 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.analytics.data.v1beta.CohortReportSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.CohortReportSettings) - private static final com.google.analytics.data.v1beta.CohortReportSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.CohortReportSettings(); - } - - public static com.google.analytics.data.v1beta.CohortReportSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CohortReportSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CohortReportSettings(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortReportSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettingsOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettingsOrBuilder.java deleted file mode 100644 index fb5b56a0..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettingsOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface CohortReportSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.CohortReportSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If true, accumulates the result from first touch day to the end day. Not
-   * supported in `RunReportRequest`.
-   * 
- * - * bool accumulate = 1; - * - * @return The accumulate. - */ - boolean getAccumulate(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpec.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpec.java deleted file mode 100644 index 85ac27e7..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpec.java +++ /dev/null @@ -1,1592 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The specification of cohorts for a cohort report.
- * Cohort reports create a time series of user retention for the cohort. For
- * example, you could select the cohort of users that were acquired in the first
- * week of September and follow that cohort for the next six weeks. Selecting
- * the users acquired in the first week of September cohort is specified in the
- * `cohort` object. Following that cohort for the next six weeks is specified in
- * the `cohortsRange` object.
- * For examples, see [Cohort Report
- * Examples](https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples).
- * The report response could show a weekly time series where say your app has
- * retained 60% of this cohort after three weeks and 25% of this cohort after
- * six weeks. These two percentages can be calculated by the metric
- * `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CohortSpec} - */ -public final class CohortSpec extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.CohortSpec) - CohortSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use CohortSpec.newBuilder() to construct. - private CohortSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CohortSpec() { - cohorts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CohortSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CohortSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cohorts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - cohorts_.add( - input.readMessage( - com.google.analytics.data.v1beta.Cohort.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.analytics.data.v1beta.CohortsRange.Builder subBuilder = null; - if (cohortsRange_ != null) { - subBuilder = cohortsRange_.toBuilder(); - } - cohortsRange_ = - input.readMessage( - com.google.analytics.data.v1beta.CohortsRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cohortsRange_); - cohortsRange_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.analytics.data.v1beta.CohortReportSettings.Builder subBuilder = null; - if (cohortReportSettings_ != null) { - subBuilder = cohortReportSettings_.toBuilder(); - } - cohortReportSettings_ = - input.readMessage( - com.google.analytics.data.v1beta.CohortReportSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cohortReportSettings_); - cohortReportSettings_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - cohorts_ = java.util.Collections.unmodifiableList(cohorts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CohortSpec.class, - com.google.analytics.data.v1beta.CohortSpec.Builder.class); - } - - public static final int COHORTS_FIELD_NUMBER = 1; - private java.util.List cohorts_; - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - @java.lang.Override - public java.util.List getCohortsList() { - return cohorts_; - } - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - @java.lang.Override - public java.util.List - getCohortsOrBuilderList() { - return cohorts_; - } - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - @java.lang.Override - public int getCohortsCount() { - return cohorts_.size(); - } - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Cohort getCohorts(int index) { - return cohorts_.get(index); - } - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortOrBuilder getCohortsOrBuilder(int index) { - return cohorts_.get(index); - } - - public static final int COHORTS_RANGE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1beta.CohortsRange cohortsRange_; - /** - * - * - *
-   * Cohort reports follow cohorts over an extended reporting date range. This
-   * range specifies an offset duration to follow the cohorts over.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * - * @return Whether the cohortsRange field is set. - */ - @java.lang.Override - public boolean hasCohortsRange() { - return cohortsRange_ != null; - } - /** - * - * - *
-   * Cohort reports follow cohorts over an extended reporting date range. This
-   * range specifies an offset duration to follow the cohorts over.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * - * @return The cohortsRange. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange getCohortsRange() { - return cohortsRange_ == null - ? com.google.analytics.data.v1beta.CohortsRange.getDefaultInstance() - : cohortsRange_; - } - /** - * - * - *
-   * Cohort reports follow cohorts over an extended reporting date range. This
-   * range specifies an offset duration to follow the cohorts over.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRangeOrBuilder getCohortsRangeOrBuilder() { - return getCohortsRange(); - } - - public static final int COHORT_REPORT_SETTINGS_FIELD_NUMBER = 3; - private com.google.analytics.data.v1beta.CohortReportSettings cohortReportSettings_; - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * - * @return Whether the cohortReportSettings field is set. - */ - @java.lang.Override - public boolean hasCohortReportSettings() { - return cohortReportSettings_ != null; - } - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * - * @return The cohortReportSettings. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortReportSettings getCohortReportSettings() { - return cohortReportSettings_ == null - ? com.google.analytics.data.v1beta.CohortReportSettings.getDefaultInstance() - : cohortReportSettings_; - } - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder - getCohortReportSettingsOrBuilder() { - return getCohortReportSettings(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < cohorts_.size(); i++) { - output.writeMessage(1, cohorts_.get(i)); - } - if (cohortsRange_ != null) { - output.writeMessage(2, getCohortsRange()); - } - if (cohortReportSettings_ != null) { - output.writeMessage(3, getCohortReportSettings()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < cohorts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cohorts_.get(i)); - } - if (cohortsRange_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCohortsRange()); - } - if (cohortReportSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCohortReportSettings()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.CohortSpec)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.CohortSpec other = - (com.google.analytics.data.v1beta.CohortSpec) obj; - - if (!getCohortsList().equals(other.getCohortsList())) return false; - if (hasCohortsRange() != other.hasCohortsRange()) return false; - if (hasCohortsRange()) { - if (!getCohortsRange().equals(other.getCohortsRange())) return false; - } - if (hasCohortReportSettings() != other.hasCohortReportSettings()) return false; - if (hasCohortReportSettings()) { - if (!getCohortReportSettings().equals(other.getCohortReportSettings())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCohortsCount() > 0) { - hash = (37 * hash) + COHORTS_FIELD_NUMBER; - hash = (53 * hash) + getCohortsList().hashCode(); - } - if (hasCohortsRange()) { - hash = (37 * hash) + COHORTS_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getCohortsRange().hashCode(); - } - if (hasCohortReportSettings()) { - hash = (37 * hash) + COHORT_REPORT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getCohortReportSettings().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.CohortSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 specification of cohorts for a cohort report.
-   * Cohort reports create a time series of user retention for the cohort. For
-   * example, you could select the cohort of users that were acquired in the first
-   * week of September and follow that cohort for the next six weeks. Selecting
-   * the users acquired in the first week of September cohort is specified in the
-   * `cohort` object. Following that cohort for the next six weeks is specified in
-   * the `cohortsRange` object.
-   * For examples, see [Cohort Report
-   * Examples](https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples).
-   * The report response could show a weekly time series where say your app has
-   * retained 60% of this cohort after three weeks and 25% of this cohort after
-   * six weeks. These two percentages can be calculated by the metric
-   * `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CohortSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.CohortSpec) - com.google.analytics.data.v1beta.CohortSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CohortSpec.class, - com.google.analytics.data.v1beta.CohortSpec.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.CohortSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCohortsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (cohortsBuilder_ == null) { - cohorts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - cohortsBuilder_.clear(); - } - if (cohortsRangeBuilder_ == null) { - cohortsRange_ = null; - } else { - cohortsRange_ = null; - cohortsRangeBuilder_ = null; - } - if (cohortReportSettingsBuilder_ == null) { - cohortReportSettings_ = null; - } else { - cohortReportSettings_ = null; - cohortReportSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortSpec_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpec getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpec build() { - com.google.analytics.data.v1beta.CohortSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpec buildPartial() { - com.google.analytics.data.v1beta.CohortSpec result = - new com.google.analytics.data.v1beta.CohortSpec(this); - int from_bitField0_ = bitField0_; - if (cohortsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cohorts_ = java.util.Collections.unmodifiableList(cohorts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cohorts_ = cohorts_; - } else { - result.cohorts_ = cohortsBuilder_.build(); - } - if (cohortsRangeBuilder_ == null) { - result.cohortsRange_ = cohortsRange_; - } else { - result.cohortsRange_ = cohortsRangeBuilder_.build(); - } - if (cohortReportSettingsBuilder_ == null) { - result.cohortReportSettings_ = cohortReportSettings_; - } else { - result.cohortReportSettings_ = cohortReportSettingsBuilder_.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.analytics.data.v1beta.CohortSpec) { - return mergeFrom((com.google.analytics.data.v1beta.CohortSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.CohortSpec other) { - if (other == com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance()) return this; - if (cohortsBuilder_ == null) { - if (!other.cohorts_.isEmpty()) { - if (cohorts_.isEmpty()) { - cohorts_ = other.cohorts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCohortsIsMutable(); - cohorts_.addAll(other.cohorts_); - } - onChanged(); - } - } else { - if (!other.cohorts_.isEmpty()) { - if (cohortsBuilder_.isEmpty()) { - cohortsBuilder_.dispose(); - cohortsBuilder_ = null; - cohorts_ = other.cohorts_; - bitField0_ = (bitField0_ & ~0x00000001); - cohortsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCohortsFieldBuilder() - : null; - } else { - cohortsBuilder_.addAllMessages(other.cohorts_); - } - } - } - if (other.hasCohortsRange()) { - mergeCohortsRange(other.getCohortsRange()); - } - if (other.hasCohortReportSettings()) { - mergeCohortReportSettings(other.getCohortReportSettings()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.CohortSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.CohortSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List cohorts_ = - java.util.Collections.emptyList(); - - private void ensureCohortsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cohorts_ = new java.util.ArrayList(cohorts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Cohort, - com.google.analytics.data.v1beta.Cohort.Builder, - com.google.analytics.data.v1beta.CohortOrBuilder> - cohortsBuilder_; - - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public java.util.List getCohortsList() { - if (cohortsBuilder_ == null) { - return java.util.Collections.unmodifiableList(cohorts_); - } else { - return cohortsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public int getCohortsCount() { - if (cohortsBuilder_ == null) { - return cohorts_.size(); - } else { - return cohortsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1beta.Cohort getCohorts(int index) { - if (cohortsBuilder_ == null) { - return cohorts_.get(index); - } else { - return cohortsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder setCohorts(int index, com.google.analytics.data.v1beta.Cohort value) { - if (cohortsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCohortsIsMutable(); - cohorts_.set(index, value); - onChanged(); - } else { - cohortsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder setCohorts( - int index, com.google.analytics.data.v1beta.Cohort.Builder builderForValue) { - if (cohortsBuilder_ == null) { - ensureCohortsIsMutable(); - cohorts_.set(index, builderForValue.build()); - onChanged(); - } else { - cohortsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder addCohorts(com.google.analytics.data.v1beta.Cohort value) { - if (cohortsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCohortsIsMutable(); - cohorts_.add(value); - onChanged(); - } else { - cohortsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder addCohorts(int index, com.google.analytics.data.v1beta.Cohort value) { - if (cohortsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCohortsIsMutable(); - cohorts_.add(index, value); - onChanged(); - } else { - cohortsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder addCohorts(com.google.analytics.data.v1beta.Cohort.Builder builderForValue) { - if (cohortsBuilder_ == null) { - ensureCohortsIsMutable(); - cohorts_.add(builderForValue.build()); - onChanged(); - } else { - cohortsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder addCohorts( - int index, com.google.analytics.data.v1beta.Cohort.Builder builderForValue) { - if (cohortsBuilder_ == null) { - ensureCohortsIsMutable(); - cohorts_.add(index, builderForValue.build()); - onChanged(); - } else { - cohortsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder addAllCohorts( - java.lang.Iterable values) { - if (cohortsBuilder_ == null) { - ensureCohortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cohorts_); - onChanged(); - } else { - cohortsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder clearCohorts() { - if (cohortsBuilder_ == null) { - cohorts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - cohortsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public Builder removeCohorts(int index) { - if (cohortsBuilder_ == null) { - ensureCohortsIsMutable(); - cohorts_.remove(index); - onChanged(); - } else { - cohortsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1beta.Cohort.Builder getCohortsBuilder(int index) { - return getCohortsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1beta.CohortOrBuilder getCohortsOrBuilder(int index) { - if (cohortsBuilder_ == null) { - return cohorts_.get(index); - } else { - return cohortsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public java.util.List - getCohortsOrBuilderList() { - if (cohortsBuilder_ != null) { - return cohortsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cohorts_); - } - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1beta.Cohort.Builder addCohortsBuilder() { - return getCohortsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Cohort.getDefaultInstance()); - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1beta.Cohort.Builder addCohortsBuilder(int index) { - return getCohortsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Cohort.getDefaultInstance()); - } - /** - * - * - *
-     * Defines the selection criteria to group users into cohorts.
-     * Most cohort reports define only a single cohort. If multiple cohorts are
-     * specified, each cohort can be recognized in the report by their name.
-     * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - public java.util.List getCohortsBuilderList() { - return getCohortsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Cohort, - com.google.analytics.data.v1beta.Cohort.Builder, - com.google.analytics.data.v1beta.CohortOrBuilder> - getCohortsFieldBuilder() { - if (cohortsBuilder_ == null) { - cohortsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Cohort, - com.google.analytics.data.v1beta.Cohort.Builder, - com.google.analytics.data.v1beta.CohortOrBuilder>( - cohorts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - cohorts_ = null; - } - return cohortsBuilder_; - } - - private com.google.analytics.data.v1beta.CohortsRange cohortsRange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortsRange, - com.google.analytics.data.v1beta.CohortsRange.Builder, - com.google.analytics.data.v1beta.CohortsRangeOrBuilder> - cohortsRangeBuilder_; - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * - * @return Whether the cohortsRange field is set. - */ - public boolean hasCohortsRange() { - return cohortsRangeBuilder_ != null || cohortsRange_ != null; - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * - * @return The cohortsRange. - */ - public com.google.analytics.data.v1beta.CohortsRange getCohortsRange() { - if (cohortsRangeBuilder_ == null) { - return cohortsRange_ == null - ? com.google.analytics.data.v1beta.CohortsRange.getDefaultInstance() - : cohortsRange_; - } else { - return cohortsRangeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - public Builder setCohortsRange(com.google.analytics.data.v1beta.CohortsRange value) { - if (cohortsRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cohortsRange_ = value; - onChanged(); - } else { - cohortsRangeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - public Builder setCohortsRange( - com.google.analytics.data.v1beta.CohortsRange.Builder builderForValue) { - if (cohortsRangeBuilder_ == null) { - cohortsRange_ = builderForValue.build(); - onChanged(); - } else { - cohortsRangeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - public Builder mergeCohortsRange(com.google.analytics.data.v1beta.CohortsRange value) { - if (cohortsRangeBuilder_ == null) { - if (cohortsRange_ != null) { - cohortsRange_ = - com.google.analytics.data.v1beta.CohortsRange.newBuilder(cohortsRange_) - .mergeFrom(value) - .buildPartial(); - } else { - cohortsRange_ = value; - } - onChanged(); - } else { - cohortsRangeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - public Builder clearCohortsRange() { - if (cohortsRangeBuilder_ == null) { - cohortsRange_ = null; - onChanged(); - } else { - cohortsRange_ = null; - cohortsRangeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - public com.google.analytics.data.v1beta.CohortsRange.Builder getCohortsRangeBuilder() { - - onChanged(); - return getCohortsRangeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - public com.google.analytics.data.v1beta.CohortsRangeOrBuilder getCohortsRangeOrBuilder() { - if (cohortsRangeBuilder_ != null) { - return cohortsRangeBuilder_.getMessageOrBuilder(); - } else { - return cohortsRange_ == null - ? com.google.analytics.data.v1beta.CohortsRange.getDefaultInstance() - : cohortsRange_; - } - } - /** - * - * - *
-     * Cohort reports follow cohorts over an extended reporting date range. This
-     * range specifies an offset duration to follow the cohorts over.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortsRange, - com.google.analytics.data.v1beta.CohortsRange.Builder, - com.google.analytics.data.v1beta.CohortsRangeOrBuilder> - getCohortsRangeFieldBuilder() { - if (cohortsRangeBuilder_ == null) { - cohortsRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortsRange, - com.google.analytics.data.v1beta.CohortsRange.Builder, - com.google.analytics.data.v1beta.CohortsRangeOrBuilder>( - getCohortsRange(), getParentForChildren(), isClean()); - cohortsRange_ = null; - } - return cohortsRangeBuilder_; - } - - private com.google.analytics.data.v1beta.CohortReportSettings cohortReportSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortReportSettings, - com.google.analytics.data.v1beta.CohortReportSettings.Builder, - com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder> - cohortReportSettingsBuilder_; - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * - * @return Whether the cohortReportSettings field is set. - */ - public boolean hasCohortReportSettings() { - return cohortReportSettingsBuilder_ != null || cohortReportSettings_ != null; - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * - * @return The cohortReportSettings. - */ - public com.google.analytics.data.v1beta.CohortReportSettings getCohortReportSettings() { - if (cohortReportSettingsBuilder_ == null) { - return cohortReportSettings_ == null - ? com.google.analytics.data.v1beta.CohortReportSettings.getDefaultInstance() - : cohortReportSettings_; - } else { - return cohortReportSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - public Builder setCohortReportSettings( - com.google.analytics.data.v1beta.CohortReportSettings value) { - if (cohortReportSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cohortReportSettings_ = value; - onChanged(); - } else { - cohortReportSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - public Builder setCohortReportSettings( - com.google.analytics.data.v1beta.CohortReportSettings.Builder builderForValue) { - if (cohortReportSettingsBuilder_ == null) { - cohortReportSettings_ = builderForValue.build(); - onChanged(); - } else { - cohortReportSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - public Builder mergeCohortReportSettings( - com.google.analytics.data.v1beta.CohortReportSettings value) { - if (cohortReportSettingsBuilder_ == null) { - if (cohortReportSettings_ != null) { - cohortReportSettings_ = - com.google.analytics.data.v1beta.CohortReportSettings.newBuilder( - cohortReportSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - cohortReportSettings_ = value; - } - onChanged(); - } else { - cohortReportSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - public Builder clearCohortReportSettings() { - if (cohortReportSettingsBuilder_ == null) { - cohortReportSettings_ = null; - onChanged(); - } else { - cohortReportSettings_ = null; - cohortReportSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - public com.google.analytics.data.v1beta.CohortReportSettings.Builder - getCohortReportSettingsBuilder() { - - onChanged(); - return getCohortReportSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - public com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder - getCohortReportSettingsOrBuilder() { - if (cohortReportSettingsBuilder_ != null) { - return cohortReportSettingsBuilder_.getMessageOrBuilder(); - } else { - return cohortReportSettings_ == null - ? com.google.analytics.data.v1beta.CohortReportSettings.getDefaultInstance() - : cohortReportSettings_; - } - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortReportSettings, - com.google.analytics.data.v1beta.CohortReportSettings.Builder, - com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder> - getCohortReportSettingsFieldBuilder() { - if (cohortReportSettingsBuilder_ == null) { - cohortReportSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortReportSettings, - com.google.analytics.data.v1beta.CohortReportSettings.Builder, - com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder>( - getCohortReportSettings(), getParentForChildren(), isClean()); - cohortReportSettings_ = null; - } - return cohortReportSettingsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.CohortSpec) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.CohortSpec) - private static final com.google.analytics.data.v1beta.CohortSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.CohortSpec(); - } - - public static com.google.analytics.data.v1beta.CohortSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CohortSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CohortSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpecOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpecOrBuilder.java deleted file mode 100644 index c06e217d..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpecOrBuilder.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface CohortSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.CohortSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - java.util.List getCohortsList(); - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - com.google.analytics.data.v1beta.Cohort getCohorts(int index); - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - int getCohortsCount(); - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - java.util.List - getCohortsOrBuilderList(); - /** - * - * - *
-   * Defines the selection criteria to group users into cohorts.
-   * Most cohort reports define only a single cohort. If multiple cohorts are
-   * specified, each cohort can be recognized in the report by their name.
-   * 
- * - * repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - com.google.analytics.data.v1beta.CohortOrBuilder getCohortsOrBuilder(int index); - - /** - * - * - *
-   * Cohort reports follow cohorts over an extended reporting date range. This
-   * range specifies an offset duration to follow the cohorts over.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * - * @return Whether the cohortsRange field is set. - */ - boolean hasCohortsRange(); - /** - * - * - *
-   * Cohort reports follow cohorts over an extended reporting date range. This
-   * range specifies an offset duration to follow the cohorts over.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * - * @return The cohortsRange. - */ - com.google.analytics.data.v1beta.CohortsRange getCohortsRange(); - /** - * - * - *
-   * Cohort reports follow cohorts over an extended reporting date range. This
-   * range specifies an offset duration to follow the cohorts over.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - com.google.analytics.data.v1beta.CohortsRangeOrBuilder getCohortsRangeOrBuilder(); - - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * - * @return Whether the cohortReportSettings field is set. - */ - boolean hasCohortReportSettings(); - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * - * @return The cohortReportSettings. - */ - com.google.analytics.data.v1beta.CohortReportSettings getCohortReportSettings(); - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - com.google.analytics.data.v1beta.CohortReportSettingsOrBuilder getCohortReportSettingsOrBuilder(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRange.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRange.java deleted file mode 100644 index 89faa7b5..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRange.java +++ /dev/null @@ -1,1058 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Configures the extended reporting date range for a cohort report. Specifies
- * an offset duration to follow the cohorts over.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CohortsRange} - */ -public final class CohortsRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.CohortsRange) - CohortsRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use CohortsRange.newBuilder() to construct. - private CohortsRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CohortsRange() { - granularity_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CohortsRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CohortsRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - granularity_ = rawValue; - break; - } - case 16: - { - startOffset_ = input.readInt32(); - break; - } - case 24: - { - endOffset_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortsRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortsRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CohortsRange.class, - com.google.analytics.data.v1beta.CohortsRange.Builder.class); - } - - /** - * - * - *
-   * The granularity used to interpret the `startOffset` and `endOffset` for the
-   * extended reporting date range for a cohort report.
-   * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.CohortsRange.Granularity} - */ - public enum Granularity implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Should never be specified.
-     * 
- * - * GRANULARITY_UNSPECIFIED = 0; - */ - GRANULARITY_UNSPECIFIED(0), - /** - * - * - *
-     * Daily granularity. Commonly used if the cohort's `dateRange` is a single
-     * day and the request contains `cohortNthDay`.
-     * 
- * - * DAILY = 1; - */ - DAILY(1), - /** - * - * - *
-     * Weekly granularity. Commonly used if the cohort's `dateRange` is a week
-     * in duration (starting on Sunday and ending on Saturday) and the request
-     * contains `cohortNthWeek`.
-     * 
- * - * WEEKLY = 2; - */ - WEEKLY(2), - /** - * - * - *
-     * Monthly granularity. Commonly used if the cohort's `dateRange` is a month
-     * in duration and the request contains `cohortNthMonth`.
-     * 
- * - * MONTHLY = 3; - */ - MONTHLY(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Should never be specified.
-     * 
- * - * GRANULARITY_UNSPECIFIED = 0; - */ - public static final int GRANULARITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Daily granularity. Commonly used if the cohort's `dateRange` is a single
-     * day and the request contains `cohortNthDay`.
-     * 
- * - * DAILY = 1; - */ - public static final int DAILY_VALUE = 1; - /** - * - * - *
-     * Weekly granularity. Commonly used if the cohort's `dateRange` is a week
-     * in duration (starting on Sunday and ending on Saturday) and the request
-     * contains `cohortNthWeek`.
-     * 
- * - * WEEKLY = 2; - */ - public static final int WEEKLY_VALUE = 2; - /** - * - * - *
-     * Monthly granularity. Commonly used if the cohort's `dateRange` is a month
-     * in duration and the request contains `cohortNthMonth`.
-     * 
- * - * MONTHLY = 3; - */ - public static final int MONTHLY_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 Granularity 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 Granularity forNumber(int value) { - switch (value) { - case 0: - return GRANULARITY_UNSPECIFIED; - case 1: - return DAILY; - case 2: - return WEEKLY; - case 3: - return MONTHLY; - 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 Granularity findValueByNumber(int number) { - return Granularity.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.analytics.data.v1beta.CohortsRange.getDescriptor().getEnumTypes().get(0); - } - - private static final Granularity[] VALUES = values(); - - public static Granularity 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 Granularity(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.CohortsRange.Granularity) - } - - public static final int GRANULARITY_FIELD_NUMBER = 1; - private int granularity_; - /** - * - * - *
-   * Required. The granularity used to interpret the `startOffset` and
-   * `endOffset` for the extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return The enum numeric value on the wire for granularity. - */ - @java.lang.Override - public int getGranularityValue() { - return granularity_; - } - /** - * - * - *
-   * Required. The granularity used to interpret the `startOffset` and
-   * `endOffset` for the extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return The granularity. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange.Granularity getGranularity() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.CohortsRange.Granularity result = - com.google.analytics.data.v1beta.CohortsRange.Granularity.valueOf(granularity_); - return result == null - ? com.google.analytics.data.v1beta.CohortsRange.Granularity.UNRECOGNIZED - : result; - } - - public static final int START_OFFSET_FIELD_NUMBER = 2; - private int startOffset_; - /** - * - * - *
-   * `startOffset` specifies the start date of the extended reporting date range
-   * for a cohort report. `startOffset` is commonly set to 0 so that reports
-   * contain data from the acquisition of the cohort forward.
-   * If `granularity` is `DAILY`, the `startDate` of the extended reporting date
-   * range is `startDate` of the cohort plus `startOffset` days.
-   * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
-   * date range is `startDate` of the cohort plus `startOffset * 7` days.
-   * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
-   * date range is `startDate` of the cohort plus `startOffset * 30` days.
-   * 
- * - * int32 start_offset = 2; - * - * @return The startOffset. - */ - @java.lang.Override - public int getStartOffset() { - return startOffset_; - } - - public static final int END_OFFSET_FIELD_NUMBER = 3; - private int endOffset_; - /** - * - * - *
-   * Required. `endOffset` specifies the end date of the extended reporting date
-   * range for a cohort report. `endOffset` can be any positive integer but is
-   * commonly set to 5 to 10 so that reports contain data on the cohort for the
-   * next several granularity time periods.
-   * If `granularity` is `DAILY`, the `endDate` of the extended reporting date
-   * range is `endDate` of the cohort plus `endOffset` days.
-   * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
-   * range is `endDate` of the cohort plus `endOffset * 7` days.
-   * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
-   * range is `endDate` of the cohort plus `endOffset * 30` days.
-   * 
- * - * int32 end_offset = 3; - * - * @return The endOffset. - */ - @java.lang.Override - public int getEndOffset() { - return endOffset_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (granularity_ - != com.google.analytics.data.v1beta.CohortsRange.Granularity.GRANULARITY_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, granularity_); - } - if (startOffset_ != 0) { - output.writeInt32(2, startOffset_); - } - if (endOffset_ != 0) { - output.writeInt32(3, endOffset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (granularity_ - != com.google.analytics.data.v1beta.CohortsRange.Granularity.GRANULARITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, granularity_); - } - if (startOffset_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startOffset_); - } - if (endOffset_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endOffset_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.CohortsRange)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.CohortsRange other = - (com.google.analytics.data.v1beta.CohortsRange) obj; - - if (granularity_ != other.granularity_) return false; - if (getStartOffset() != other.getStartOffset()) return false; - if (getEndOffset() != other.getEndOffset()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; - hash = (53 * hash) + granularity_; - hash = (37 * hash) + START_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + getStartOffset(); - hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + getEndOffset(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.CohortsRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.CohortsRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configures the extended reporting date range for a cohort report. Specifies
-   * an offset duration to follow the cohorts over.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.CohortsRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.CohortsRange) - com.google.analytics.data.v1beta.CohortsRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortsRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortsRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.CohortsRange.class, - com.google.analytics.data.v1beta.CohortsRange.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.CohortsRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - granularity_ = 0; - - startOffset_ = 0; - - endOffset_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_CohortsRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.CohortsRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange build() { - com.google.analytics.data.v1beta.CohortsRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange buildPartial() { - com.google.analytics.data.v1beta.CohortsRange result = - new com.google.analytics.data.v1beta.CohortsRange(this); - result.granularity_ = granularity_; - result.startOffset_ = startOffset_; - result.endOffset_ = endOffset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.CohortsRange) { - return mergeFrom((com.google.analytics.data.v1beta.CohortsRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.CohortsRange other) { - if (other == com.google.analytics.data.v1beta.CohortsRange.getDefaultInstance()) return this; - if (other.granularity_ != 0) { - setGranularityValue(other.getGranularityValue()); - } - if (other.getStartOffset() != 0) { - setStartOffset(other.getStartOffset()); - } - if (other.getEndOffset() != 0) { - setEndOffset(other.getEndOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.CohortsRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.CohortsRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int granularity_ = 0; - /** - * - * - *
-     * Required. The granularity used to interpret the `startOffset` and
-     * `endOffset` for the extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return The enum numeric value on the wire for granularity. - */ - @java.lang.Override - public int getGranularityValue() { - return granularity_; - } - /** - * - * - *
-     * Required. The granularity used to interpret the `startOffset` and
-     * `endOffset` for the extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @param value The enum numeric value on the wire for granularity to set. - * @return This builder for chaining. - */ - public Builder setGranularityValue(int value) { - - granularity_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The granularity used to interpret the `startOffset` and
-     * `endOffset` for the extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return The granularity. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange.Granularity getGranularity() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.CohortsRange.Granularity result = - com.google.analytics.data.v1beta.CohortsRange.Granularity.valueOf(granularity_); - return result == null - ? com.google.analytics.data.v1beta.CohortsRange.Granularity.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. The granularity used to interpret the `startOffset` and
-     * `endOffset` for the extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @param value The granularity to set. - * @return This builder for chaining. - */ - public Builder setGranularity(com.google.analytics.data.v1beta.CohortsRange.Granularity value) { - if (value == null) { - throw new NullPointerException(); - } - - granularity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The granularity used to interpret the `startOffset` and
-     * `endOffset` for the extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return This builder for chaining. - */ - public Builder clearGranularity() { - - granularity_ = 0; - onChanged(); - return this; - } - - private int startOffset_; - /** - * - * - *
-     * `startOffset` specifies the start date of the extended reporting date range
-     * for a cohort report. `startOffset` is commonly set to 0 so that reports
-     * contain data from the acquisition of the cohort forward.
-     * If `granularity` is `DAILY`, the `startDate` of the extended reporting date
-     * range is `startDate` of the cohort plus `startOffset` days.
-     * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
-     * date range is `startDate` of the cohort plus `startOffset * 7` days.
-     * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
-     * date range is `startDate` of the cohort plus `startOffset * 30` days.
-     * 
- * - * int32 start_offset = 2; - * - * @return The startOffset. - */ - @java.lang.Override - public int getStartOffset() { - return startOffset_; - } - /** - * - * - *
-     * `startOffset` specifies the start date of the extended reporting date range
-     * for a cohort report. `startOffset` is commonly set to 0 so that reports
-     * contain data from the acquisition of the cohort forward.
-     * If `granularity` is `DAILY`, the `startDate` of the extended reporting date
-     * range is `startDate` of the cohort plus `startOffset` days.
-     * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
-     * date range is `startDate` of the cohort plus `startOffset * 7` days.
-     * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
-     * date range is `startDate` of the cohort plus `startOffset * 30` days.
-     * 
- * - * int32 start_offset = 2; - * - * @param value The startOffset to set. - * @return This builder for chaining. - */ - public Builder setStartOffset(int value) { - - startOffset_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `startOffset` specifies the start date of the extended reporting date range
-     * for a cohort report. `startOffset` is commonly set to 0 so that reports
-     * contain data from the acquisition of the cohort forward.
-     * If `granularity` is `DAILY`, the `startDate` of the extended reporting date
-     * range is `startDate` of the cohort plus `startOffset` days.
-     * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
-     * date range is `startDate` of the cohort plus `startOffset * 7` days.
-     * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
-     * date range is `startDate` of the cohort plus `startOffset * 30` days.
-     * 
- * - * int32 start_offset = 2; - * - * @return This builder for chaining. - */ - public Builder clearStartOffset() { - - startOffset_ = 0; - onChanged(); - return this; - } - - private int endOffset_; - /** - * - * - *
-     * Required. `endOffset` specifies the end date of the extended reporting date
-     * range for a cohort report. `endOffset` can be any positive integer but is
-     * commonly set to 5 to 10 so that reports contain data on the cohort for the
-     * next several granularity time periods.
-     * If `granularity` is `DAILY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset` days.
-     * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset * 7` days.
-     * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset * 30` days.
-     * 
- * - * int32 end_offset = 3; - * - * @return The endOffset. - */ - @java.lang.Override - public int getEndOffset() { - return endOffset_; - } - /** - * - * - *
-     * Required. `endOffset` specifies the end date of the extended reporting date
-     * range for a cohort report. `endOffset` can be any positive integer but is
-     * commonly set to 5 to 10 so that reports contain data on the cohort for the
-     * next several granularity time periods.
-     * If `granularity` is `DAILY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset` days.
-     * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset * 7` days.
-     * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset * 30` days.
-     * 
- * - * int32 end_offset = 3; - * - * @param value The endOffset to set. - * @return This builder for chaining. - */ - public Builder setEndOffset(int value) { - - endOffset_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. `endOffset` specifies the end date of the extended reporting date
-     * range for a cohort report. `endOffset` can be any positive integer but is
-     * commonly set to 5 to 10 so that reports contain data on the cohort for the
-     * next several granularity time periods.
-     * If `granularity` is `DAILY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset` days.
-     * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset * 7` days.
-     * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
-     * range is `endDate` of the cohort plus `endOffset * 30` days.
-     * 
- * - * int32 end_offset = 3; - * - * @return This builder for chaining. - */ - public Builder clearEndOffset() { - - endOffset_ = 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.analytics.data.v1beta.CohortsRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.CohortsRange) - private static final com.google.analytics.data.v1beta.CohortsRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.CohortsRange(); - } - - public static com.google.analytics.data.v1beta.CohortsRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CohortsRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CohortsRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.CohortsRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRangeOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRangeOrBuilder.java deleted file mode 100644 index 45e963a3..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRangeOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface CohortsRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.CohortsRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The granularity used to interpret the `startOffset` and
-   * `endOffset` for the extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return The enum numeric value on the wire for granularity. - */ - int getGranularityValue(); - /** - * - * - *
-   * Required. The granularity used to interpret the `startOffset` and
-   * `endOffset` for the extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * - * @return The granularity. - */ - com.google.analytics.data.v1beta.CohortsRange.Granularity getGranularity(); - - /** - * - * - *
-   * `startOffset` specifies the start date of the extended reporting date range
-   * for a cohort report. `startOffset` is commonly set to 0 so that reports
-   * contain data from the acquisition of the cohort forward.
-   * If `granularity` is `DAILY`, the `startDate` of the extended reporting date
-   * range is `startDate` of the cohort plus `startOffset` days.
-   * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
-   * date range is `startDate` of the cohort plus `startOffset * 7` days.
-   * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
-   * date range is `startDate` of the cohort plus `startOffset * 30` days.
-   * 
- * - * int32 start_offset = 2; - * - * @return The startOffset. - */ - int getStartOffset(); - - /** - * - * - *
-   * Required. `endOffset` specifies the end date of the extended reporting date
-   * range for a cohort report. `endOffset` can be any positive integer but is
-   * commonly set to 5 to 10 so that reports contain data on the cohort for the
-   * next several granularity time periods.
-   * If `granularity` is `DAILY`, the `endDate` of the extended reporting date
-   * range is `endDate` of the cohort plus `endOffset` days.
-   * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
-   * range is `endDate` of the cohort plus `endOffset * 7` days.
-   * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
-   * range is `endDate` of the cohort plus `endOffset * 30` days.
-   * 
- * - * int32 end_offset = 3; - * - * @return The endOffset. - */ - int getEndOffset(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java deleted file mode 100644 index 1d92ef70..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The compatibility types for a single dimension or metric.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.Compatibility} - */ -public enum Compatibility implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified compatibility.
-   * 
- * - * COMPATIBILITY_UNSPECIFIED = 0; - */ - COMPATIBILITY_UNSPECIFIED(0), - /** - * - * - *
-   * The dimension or metric is compatible. This dimension or metric can be
-   * successfully added to a report.
-   * 
- * - * COMPATIBLE = 1; - */ - COMPATIBLE(1), - /** - * - * - *
-   * The dimension or metric is incompatible. This dimension or metric cannot be
-   * successfully added to a report.
-   * 
- * - * INCOMPATIBLE = 2; - */ - INCOMPATIBLE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified compatibility.
-   * 
- * - * COMPATIBILITY_UNSPECIFIED = 0; - */ - public static final int COMPATIBILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The dimension or metric is compatible. This dimension or metric can be
-   * successfully added to a report.
-   * 
- * - * COMPATIBLE = 1; - */ - public static final int COMPATIBLE_VALUE = 1; - /** - * - * - *
-   * The dimension or metric is incompatible. This dimension or metric cannot be
-   * successfully added to a report.
-   * 
- * - * INCOMPATIBLE = 2; - */ - public static final int INCOMPATIBLE_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 Compatibility 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 Compatibility forNumber(int value) { - switch (value) { - case 0: - return COMPATIBILITY_UNSPECIFIED; - case 1: - return COMPATIBLE; - case 2: - return INCOMPATIBLE; - 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 Compatibility findValueByNumber(int number) { - return Compatibility.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.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(3); - } - - private static final Compatibility[] VALUES = values(); - - public static Compatibility 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 Compatibility(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.Compatibility) -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRange.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRange.java deleted file mode 100644 index ae0a3ce8..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRange.java +++ /dev/null @@ -1,1057 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
- * are allowed up to 4 date ranges.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DateRange} - */ -public final class DateRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DateRange) - DateRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use DateRange.newBuilder() to construct. - private DateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DateRange() { - startDate_ = ""; - endDate_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DateRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DateRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - startDate_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - endDate_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DateRange.class, - com.google.analytics.data.v1beta.DateRange.Builder.class); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - private volatile java.lang.Object startDate_; - /** - * - * - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the property's
-   * reporting time zone.
-   * 
- * - * string start_date = 1; - * - * @return The startDate. - */ - @java.lang.Override - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } - } - /** - * - * - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the property's
-   * reporting time zone.
-   * 
- * - * string start_date = 1; - * - * @return The bytes for startDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private volatile java.lang.Object endDate_; - /** - * - * - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the
-   * property's reporting time zone.
-   * 
- * - * string end_date = 2; - * - * @return The endDate. - */ - @java.lang.Override - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } - } - /** - * - * - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the
-   * property's reporting time zone.
-   * 
- * - * string end_date = 2; - * - * @return The bytes for endDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Assigns a name to this date range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, date ranges are named by their zero based index in
-   * the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-   * Assigns a name to this date range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, date ranges are named by their zero based index in
-   * the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @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(startDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DateRange)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DateRange other = - (com.google.analytics.data.v1beta.DateRange) obj; - - if (!getStartDate().equals(other.getStartDate())) return false; - if (!getEndDate().equals(other.getEndDate())) return false; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DateRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DateRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DateRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.DateRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
-   * are allowed up to 4 date ranges.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DateRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DateRange) - com.google.analytics.data.v1beta.DateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DateRange.class, - com.google.analytics.data.v1beta.DateRange.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.DateRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - startDate_ = ""; - - endDate_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DateRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange build() { - com.google.analytics.data.v1beta.DateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange buildPartial() { - com.google.analytics.data.v1beta.DateRange result = - new com.google.analytics.data.v1beta.DateRange(this); - result.startDate_ = startDate_; - result.endDate_ = endDate_; - 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.analytics.data.v1beta.DateRange) { - return mergeFrom((com.google.analytics.data.v1beta.DateRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.DateRange other) { - if (other == com.google.analytics.data.v1beta.DateRange.getDefaultInstance()) return this; - if (!other.getStartDate().isEmpty()) { - startDate_ = other.startDate_; - onChanged(); - } - if (!other.getEndDate().isEmpty()) { - endDate_ = other.endDate_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DateRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.DateRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object startDate_ = ""; - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the property's
-     * reporting time zone.
-     * 
- * - * string start_date = 1; - * - * @return The startDate. - */ - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the property's
-     * reporting time zone.
-     * 
- * - * string start_date = 1; - * - * @return The bytes for startDate. - */ - public com.google.protobuf.ByteString getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the property's
-     * reporting time zone.
-     * 
- * - * string start_date = 1; - * - * @param value The startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startDate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the property's
-     * reporting time zone.
-     * 
- * - * string start_date = 1; - * - * @return This builder for chaining. - */ - public Builder clearStartDate() { - - startDate_ = getDefaultInstance().getStartDate(); - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the property's
-     * reporting time zone.
-     * 
- * - * string start_date = 1; - * - * @param value The bytes for startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startDate_ = value; - onChanged(); - return this; - } - - private java.lang.Object endDate_ = ""; - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the
-     * property's reporting time zone.
-     * 
- * - * string end_date = 2; - * - * @return The endDate. - */ - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the
-     * property's reporting time zone.
-     * 
- * - * string end_date = 2; - * - * @return The bytes for endDate. - */ - public com.google.protobuf.ByteString getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the
-     * property's reporting time zone.
-     * 
- * - * string end_date = 2; - * - * @param value The endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endDate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the
-     * property's reporting time zone.
-     * 
- * - * string end_date = 2; - * - * @return This builder for chaining. - */ - public Builder clearEndDate() { - - endDate_ = getDefaultInstance().getEndDate(); - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the
-     * property's reporting time zone.
-     * 
- * - * string end_date = 2; - * - * @param value The bytes for endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endDate_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Assigns a name to this date range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, date ranges are named by their zero based index in
-     * the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-     * Assigns a name to this date range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, date ranges are named by their zero based index in
-     * the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-     * Assigns a name to this date range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, date ranges are named by their zero based index in
-     * the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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; - } - /** - * - * - *
-     * Assigns a name to this date range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, date ranges are named by their zero based index in
-     * the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Assigns a name to this date range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, date ranges are named by their zero based index in
-     * the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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.analytics.data.v1beta.DateRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DateRange) - private static final com.google.analytics.data.v1beta.DateRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DateRange(); - } - - public static com.google.analytics.data.v1beta.DateRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DateRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DateRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRangeOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRangeOrBuilder.java deleted file mode 100644 index b08bd6d1..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRangeOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DateRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DateRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the property's
-   * reporting time zone.
-   * 
- * - * string start_date = 1; - * - * @return The startDate. - */ - java.lang.String getStartDate(); - /** - * - * - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the property's
-   * reporting time zone.
-   * 
- * - * string start_date = 1; - * - * @return The bytes for startDate. - */ - com.google.protobuf.ByteString getStartDateBytes(); - - /** - * - * - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the
-   * property's reporting time zone.
-   * 
- * - * string end_date = 2; - * - * @return The endDate. - */ - java.lang.String getEndDate(); - /** - * - * - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the
-   * property's reporting time zone.
-   * 
- * - * string end_date = 2; - * - * @return The bytes for endDate. - */ - com.google.protobuf.ByteString getEndDateBytes(); - - /** - * - * - *
-   * Assigns a name to this date range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, date ranges are named by their zero based index in
-   * the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Assigns a name to this date range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, date ranges are named by their zero based index in
-   * the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Dimension.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Dimension.java deleted file mode 100644 index e689caf8..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Dimension.java +++ /dev/null @@ -1,999 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Dimensions are attributes of your data. For example, the dimension city
- * indicates the city from which an event originates. Dimension values in report
- * responses are strings; for example, city could be "Paris" or "New York".
- * Requests are allowed up to 9 dimensions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Dimension} - */ -public final class Dimension extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Dimension) - DimensionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Dimension.newBuilder() to construct. - private Dimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Dimension() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Dimension(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Dimension( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.analytics.data.v1beta.DimensionExpression.Builder subBuilder = null; - if (dimensionExpression_ != null) { - subBuilder = dimensionExpression_.toBuilder(); - } - dimensionExpression_ = - input.readMessage( - com.google.analytics.data.v1beta.DimensionExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionExpression_); - dimensionExpression_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Dimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Dimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Dimension.class, - com.google.analytics.data.v1beta.Dimension.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of the dimension. See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * If `dimensionExpression` is specified, `name` can be any string that you
-   * would like within the allowed character set. For example if a
-   * `dimensionExpression` concatenates `country` and `city`, you could call
-   * that dimension `countryAndCity`. Dimension names that you choose must match
-   * the regular expression `^[a-zA-Z0-9_]$`.
-   * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-   * `dimensionExpression`, and `pivots`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the dimension. See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * If `dimensionExpression` is specified, `name` can be any string that you
-   * would like within the allowed character set. For example if a
-   * `dimensionExpression` concatenates `country` and `city`, you could call
-   * that dimension `countryAndCity`. Dimension names that you choose must match
-   * the regular expression `^[a-zA-Z0-9_]$`.
-   * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-   * `dimensionExpression`, and `pivots`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSION_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1beta.DimensionExpression dimensionExpression_; - /** - * - * - *
-   * One dimension can be the result of an expression of multiple dimensions.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * - * @return Whether the dimensionExpression field is set. - */ - @java.lang.Override - public boolean hasDimensionExpression() { - return dimensionExpression_ != null; - } - /** - * - * - *
-   * One dimension can be the result of an expression of multiple dimensions.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression getDimensionExpression() { - return dimensionExpression_ == null - ? com.google.analytics.data.v1beta.DimensionExpression.getDefaultInstance() - : dimensionExpression_; - } - /** - * - * - *
-   * One dimension can be the result of an expression of multiple dimensions.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpressionOrBuilder - getDimensionExpressionOrBuilder() { - return getDimensionExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (dimensionExpression_ != null) { - output.writeMessage(2, getDimensionExpression()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (dimensionExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDimensionExpression()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Dimension)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Dimension other = - (com.google.analytics.data.v1beta.Dimension) obj; - - if (!getName().equals(other.getName())) return false; - if (hasDimensionExpression() != other.hasDimensionExpression()) return false; - if (hasDimensionExpression()) { - if (!getDimensionExpression().equals(other.getDimensionExpression())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasDimensionExpression()) { - hash = (37 * hash) + DIMENSION_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getDimensionExpression().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Dimension parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Dimension parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Dimension parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Dimension prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Dimensions are attributes of your data. For example, the dimension city
-   * indicates the city from which an event originates. Dimension values in report
-   * responses are strings; for example, city could be "Paris" or "New York".
-   * Requests are allowed up to 9 dimensions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Dimension} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Dimension) - com.google.analytics.data.v1beta.DimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Dimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Dimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Dimension.class, - com.google.analytics.data.v1beta.Dimension.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Dimension.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (dimensionExpressionBuilder_ == null) { - dimensionExpression_ = null; - } else { - dimensionExpression_ = null; - dimensionExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Dimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Dimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension build() { - com.google.analytics.data.v1beta.Dimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension buildPartial() { - com.google.analytics.data.v1beta.Dimension result = - new com.google.analytics.data.v1beta.Dimension(this); - result.name_ = name_; - if (dimensionExpressionBuilder_ == null) { - result.dimensionExpression_ = dimensionExpression_; - } else { - result.dimensionExpression_ = dimensionExpressionBuilder_.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.analytics.data.v1beta.Dimension) { - return mergeFrom((com.google.analytics.data.v1beta.Dimension) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Dimension other) { - if (other == com.google.analytics.data.v1beta.Dimension.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasDimensionExpression()) { - mergeDimensionExpression(other.getDimensionExpression()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Dimension parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Dimension) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of the dimension. See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * If `dimensionExpression` is specified, `name` can be any string that you
-     * would like within the allowed character set. For example if a
-     * `dimensionExpression` concatenates `country` and `city`, you could call
-     * that dimension `countryAndCity`. Dimension names that you choose must match
-     * the regular expression `^[a-zA-Z0-9_]$`.
-     * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-     * `dimensionExpression`, and `pivots`.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the dimension. See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * If `dimensionExpression` is specified, `name` can be any string that you
-     * would like within the allowed character set. For example if a
-     * `dimensionExpression` concatenates `country` and `city`, you could call
-     * that dimension `countryAndCity`. Dimension names that you choose must match
-     * the regular expression `^[a-zA-Z0-9_]$`.
-     * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-     * `dimensionExpression`, and `pivots`.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the dimension. See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * If `dimensionExpression` is specified, `name` can be any string that you
-     * would like within the allowed character set. For example if a
-     * `dimensionExpression` concatenates `country` and `city`, you could call
-     * that dimension `countryAndCity`. Dimension names that you choose must match
-     * the regular expression `^[a-zA-Z0-9_]$`.
-     * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-     * `dimensionExpression`, and `pivots`.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the dimension. See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * If `dimensionExpression` is specified, `name` can be any string that you
-     * would like within the allowed character set. For example if a
-     * `dimensionExpression` concatenates `country` and `city`, you could call
-     * that dimension `countryAndCity`. Dimension names that you choose must match
-     * the regular expression `^[a-zA-Z0-9_]$`.
-     * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-     * `dimensionExpression`, and `pivots`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the dimension. See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * If `dimensionExpression` is specified, `name` can be any string that you
-     * would like within the allowed character set. For example if a
-     * `dimensionExpression` concatenates `country` and `city`, you could call
-     * that dimension `countryAndCity`. Dimension names that you choose must match
-     * the regular expression `^[a-zA-Z0-9_]$`.
-     * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-     * `dimensionExpression`, and `pivots`.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.DimensionExpression dimensionExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression, - com.google.analytics.data.v1beta.DimensionExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpressionOrBuilder> - dimensionExpressionBuilder_; - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * - * @return Whether the dimensionExpression field is set. - */ - public boolean hasDimensionExpression() { - return dimensionExpressionBuilder_ != null || dimensionExpression_ != null; - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - public com.google.analytics.data.v1beta.DimensionExpression getDimensionExpression() { - if (dimensionExpressionBuilder_ == null) { - return dimensionExpression_ == null - ? com.google.analytics.data.v1beta.DimensionExpression.getDefaultInstance() - : dimensionExpression_; - } else { - return dimensionExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - public Builder setDimensionExpression( - com.google.analytics.data.v1beta.DimensionExpression value) { - if (dimensionExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionExpression_ = value; - onChanged(); - } else { - dimensionExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - public Builder setDimensionExpression( - com.google.analytics.data.v1beta.DimensionExpression.Builder builderForValue) { - if (dimensionExpressionBuilder_ == null) { - dimensionExpression_ = builderForValue.build(); - onChanged(); - } else { - dimensionExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - public Builder mergeDimensionExpression( - com.google.analytics.data.v1beta.DimensionExpression value) { - if (dimensionExpressionBuilder_ == null) { - if (dimensionExpression_ != null) { - dimensionExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.newBuilder(dimensionExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionExpression_ = value; - } - onChanged(); - } else { - dimensionExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - public Builder clearDimensionExpression() { - if (dimensionExpressionBuilder_ == null) { - dimensionExpression_ = null; - onChanged(); - } else { - dimensionExpression_ = null; - dimensionExpressionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - public com.google.analytics.data.v1beta.DimensionExpression.Builder - getDimensionExpressionBuilder() { - - onChanged(); - return getDimensionExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - public com.google.analytics.data.v1beta.DimensionExpressionOrBuilder - getDimensionExpressionOrBuilder() { - if (dimensionExpressionBuilder_ != null) { - return dimensionExpressionBuilder_.getMessageOrBuilder(); - } else { - return dimensionExpression_ == null - ? com.google.analytics.data.v1beta.DimensionExpression.getDefaultInstance() - : dimensionExpression_; - } - } - /** - * - * - *
-     * One dimension can be the result of an expression of multiple dimensions.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression, - com.google.analytics.data.v1beta.DimensionExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpressionOrBuilder> - getDimensionExpressionFieldBuilder() { - if (dimensionExpressionBuilder_ == null) { - dimensionExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression, - com.google.analytics.data.v1beta.DimensionExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpressionOrBuilder>( - getDimensionExpression(), getParentForChildren(), isClean()); - dimensionExpression_ = null; - } - return dimensionExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Dimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Dimension) - private static final com.google.analytics.data.v1beta.Dimension DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Dimension(); - } - - public static com.google.analytics.data.v1beta.Dimension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dimension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Dimension(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java deleted file mode 100644 index bfe2a8d6..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java +++ /dev/null @@ -1,978 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The compatibility for a single dimension.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionCompatibility} - */ -public final class DimensionCompatibility extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionCompatibility) - DimensionCompatibilityOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionCompatibility.newBuilder() to construct. - private DimensionCompatibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionCompatibility() { - compatibility_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionCompatibility(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DimensionCompatibility( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = dimensionMetadata_.toBuilder(); - } - dimensionMetadata_ = - input.readMessage( - com.google.analytics.data.v1beta.DimensionMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionMetadata_); - dimensionMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: - { - int rawValue = input.readEnum(); - bitField0_ |= 0x00000002; - compatibility_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionCompatibility_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionCompatibility.class, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder.class); - } - - private int bitField0_; - public static final int DIMENSION_METADATA_FIELD_NUMBER = 1; - private com.google.analytics.data.v1beta.DimensionMetadata dimensionMetadata_; - /** - * - * - *
-   * The dimension metadata contains the API name for this compatibility
-   * information. The dimension metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * - * @return Whether the dimensionMetadata field is set. - */ - @java.lang.Override - public boolean hasDimensionMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The dimension metadata contains the API name for this compatibility
-   * information. The dimension metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * - * @return The dimensionMetadata. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadata getDimensionMetadata() { - return dimensionMetadata_ == null - ? com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance() - : dimensionMetadata_; - } - /** - * - * - *
-   * The dimension metadata contains the API name for this compatibility
-   * information. The dimension metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadataOrBuilder - getDimensionMetadataOrBuilder() { - return dimensionMetadata_ == null - ? com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance() - : dimensionMetadata_; - } - - public static final int COMPATIBILITY_FIELD_NUMBER = 2; - private int compatibility_; - /** - * - * - *
-   * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-   * this dimension can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return Whether the compatibility field is set. - */ - @java.lang.Override - public boolean hasCompatibility() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-   * this dimension can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The enum numeric value on the wire for compatibility. - */ - @java.lang.Override - public int getCompatibilityValue() { - return compatibility_; - } - /** - * - * - *
-   * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-   * this dimension can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The compatibility. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Compatibility getCompatibility() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Compatibility result = - com.google.analytics.data.v1beta.Compatibility.valueOf(compatibility_); - return result == null ? com.google.analytics.data.v1beta.Compatibility.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getDimensionMetadata()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, compatibility_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDimensionMetadata()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compatibility_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DimensionCompatibility)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionCompatibility other = - (com.google.analytics.data.v1beta.DimensionCompatibility) obj; - - if (hasDimensionMetadata() != other.hasDimensionMetadata()) return false; - if (hasDimensionMetadata()) { - if (!getDimensionMetadata().equals(other.getDimensionMetadata())) return false; - } - if (hasCompatibility() != other.hasCompatibility()) return false; - if (hasCompatibility()) { - if (compatibility_ != other.compatibility_) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDimensionMetadata()) { - hash = (37 * hash) + DIMENSION_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getDimensionMetadata().hashCode(); - } - if (hasCompatibility()) { - hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; - hash = (53 * hash) + compatibility_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.DimensionCompatibility prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 compatibility for a single dimension.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionCompatibility} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionCompatibility) - com.google.analytics.data.v1beta.DimensionCompatibilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionCompatibility_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionCompatibility.class, - com.google.analytics.data.v1beta.DimensionCompatibility.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.DimensionCompatibility.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionMetadataBuilder_ == null) { - dimensionMetadata_ = null; - } else { - dimensionMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - compatibility_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionCompatibility getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionCompatibility.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionCompatibility build() { - com.google.analytics.data.v1beta.DimensionCompatibility result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionCompatibility buildPartial() { - com.google.analytics.data.v1beta.DimensionCompatibility result = - new com.google.analytics.data.v1beta.DimensionCompatibility(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (dimensionMetadataBuilder_ == null) { - result.dimensionMetadata_ = dimensionMetadata_; - } else { - result.dimensionMetadata_ = dimensionMetadataBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.compatibility_ = compatibility_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.DimensionCompatibility) { - return mergeFrom((com.google.analytics.data.v1beta.DimensionCompatibility) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionCompatibility other) { - if (other == com.google.analytics.data.v1beta.DimensionCompatibility.getDefaultInstance()) - return this; - if (other.hasDimensionMetadata()) { - mergeDimensionMetadata(other.getDimensionMetadata()); - } - if (other.hasCompatibility()) { - setCompatibility(other.getCompatibility()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionCompatibility parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionCompatibility) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1beta.DimensionMetadata dimensionMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionMetadata, - com.google.analytics.data.v1beta.DimensionMetadata.Builder, - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder> - dimensionMetadataBuilder_; - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * - * @return Whether the dimensionMetadata field is set. - */ - public boolean hasDimensionMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * - * @return The dimensionMetadata. - */ - public com.google.analytics.data.v1beta.DimensionMetadata getDimensionMetadata() { - if (dimensionMetadataBuilder_ == null) { - return dimensionMetadata_ == null - ? com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance() - : dimensionMetadata_; - } else { - return dimensionMetadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - public Builder setDimensionMetadata(com.google.analytics.data.v1beta.DimensionMetadata value) { - if (dimensionMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionMetadata_ = value; - onChanged(); - } else { - dimensionMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - public Builder setDimensionMetadata( - com.google.analytics.data.v1beta.DimensionMetadata.Builder builderForValue) { - if (dimensionMetadataBuilder_ == null) { - dimensionMetadata_ = builderForValue.build(); - onChanged(); - } else { - dimensionMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - public Builder mergeDimensionMetadata( - com.google.analytics.data.v1beta.DimensionMetadata value) { - if (dimensionMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && dimensionMetadata_ != null - && dimensionMetadata_ - != com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance()) { - dimensionMetadata_ = - com.google.analytics.data.v1beta.DimensionMetadata.newBuilder(dimensionMetadata_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionMetadata_ = value; - } - onChanged(); - } else { - dimensionMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - public Builder clearDimensionMetadata() { - if (dimensionMetadataBuilder_ == null) { - dimensionMetadata_ = null; - onChanged(); - } else { - dimensionMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadata.Builder - getDimensionMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDimensionMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadataOrBuilder - getDimensionMetadataOrBuilder() { - if (dimensionMetadataBuilder_ != null) { - return dimensionMetadataBuilder_.getMessageOrBuilder(); - } else { - return dimensionMetadata_ == null - ? com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance() - : dimensionMetadata_; - } - } - /** - * - * - *
-     * The dimension metadata contains the API name for this compatibility
-     * information. The dimension metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionMetadata, - com.google.analytics.data.v1beta.DimensionMetadata.Builder, - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder> - getDimensionMetadataFieldBuilder() { - if (dimensionMetadataBuilder_ == null) { - dimensionMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionMetadata, - com.google.analytics.data.v1beta.DimensionMetadata.Builder, - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder>( - getDimensionMetadata(), getParentForChildren(), isClean()); - dimensionMetadata_ = null; - } - return dimensionMetadataBuilder_; - } - - private int compatibility_ = 0; - /** - * - * - *
-     * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-     * this dimension can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return Whether the compatibility field is set. - */ - @java.lang.Override - public boolean hasCompatibility() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-     * this dimension can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The enum numeric value on the wire for compatibility. - */ - @java.lang.Override - public int getCompatibilityValue() { - return compatibility_; - } - /** - * - * - *
-     * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-     * this dimension can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @param value The enum numeric value on the wire for compatibility to set. - * @return This builder for chaining. - */ - public Builder setCompatibilityValue(int value) { - bitField0_ |= 0x00000002; - compatibility_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-     * this dimension can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The compatibility. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Compatibility getCompatibility() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Compatibility result = - com.google.analytics.data.v1beta.Compatibility.valueOf(compatibility_); - return result == null ? com.google.analytics.data.v1beta.Compatibility.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-     * this dimension can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @param value The compatibility to set. - * @return This builder for chaining. - */ - public Builder setCompatibility(com.google.analytics.data.v1beta.Compatibility value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - compatibility_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-     * this dimension can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return This builder for chaining. - */ - public Builder clearCompatibility() { - bitField0_ = (bitField0_ & ~0x00000002); - compatibility_ = 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.analytics.data.v1beta.DimensionCompatibility) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionCompatibility) - private static final com.google.analytics.data.v1beta.DimensionCompatibility DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DimensionCompatibility(); - } - - public static com.google.analytics.data.v1beta.DimensionCompatibility getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionCompatibility parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionCompatibility(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionCompatibility getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibilityOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibilityOrBuilder.java deleted file mode 100644 index e64c9caa..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibilityOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DimensionCompatibilityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionCompatibility) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension metadata contains the API name for this compatibility
-   * information. The dimension metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * - * @return Whether the dimensionMetadata field is set. - */ - boolean hasDimensionMetadata(); - /** - * - * - *
-   * The dimension metadata contains the API name for this compatibility
-   * information. The dimension metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * - * @return The dimensionMetadata. - */ - com.google.analytics.data.v1beta.DimensionMetadata getDimensionMetadata(); - /** - * - * - *
-   * The dimension metadata contains the API name for this compatibility
-   * information. The dimension metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder getDimensionMetadataOrBuilder(); - - /** - * - * - *
-   * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-   * this dimension can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return Whether the compatibility field is set. - */ - boolean hasCompatibility(); - /** - * - * - *
-   * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-   * this dimension can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The enum numeric value on the wire for compatibility. - */ - int getCompatibilityValue(); - /** - * - * - *
-   * The compatibility of this dimension. If the compatibility is COMPATIBLE,
-   * this dimension can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The compatibility. - */ - com.google.analytics.data.v1beta.Compatibility getCompatibility(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpression.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpression.java deleted file mode 100644 index ee7cefb8..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpression.java +++ /dev/null @@ -1,3318 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Used to express a dimension which is the result of a formula of multiple
- * dimensions. Example usages:
- * 1) lower_case(dimension)
- * 2) concatenate(dimension1, symbol, dimension2).
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionExpression} - */ -public final class DimensionExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionExpression) - DimensionExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionExpression.newBuilder() to construct. - private DimensionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DimensionExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 6; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionExpression.class, - com.google.analytics.data.v1beta.DimensionExpression.Builder.class); - } - - public interface CaseExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionExpression.CaseExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Name of a dimension. The name must refer back to a name in dimensions
-     * field of the request.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - * - * - *
-     * Name of a dimension. The name must refer back to a name in dimensions
-     * field of the request.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString getDimensionNameBytes(); - } - /** - * - * - *
-   * Used to convert a dimension value to a single case.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionExpression.CaseExpression} - */ - public static final class CaseExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionExpression.CaseExpression) - CaseExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CaseExpression.newBuilder() to construct. - private CaseExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CaseExpression() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CaseExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CaseExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - dimensionName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.class, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object dimensionName_; - /** - * - * - *
-     * Name of a dimension. The name must refer back to a name in dimensions
-     * field of the request.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - * - * - *
-     * Name of a dimension. The name must refer back to a name in dimensions
-     * field of the request.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DimensionExpression.CaseExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression other = - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) obj; - - if (!getDimensionName().equals(other.getDimensionName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Used to convert a dimension value to a single case.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionExpression.CaseExpression} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionExpression.CaseExpression) - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.class, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dimensionName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression build() { - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression buildPartial() { - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression result = - new com.google.analytics.data.v1beta.DimensionExpression.CaseExpression(this); - result.dimensionName_ = dimensionName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) { - return mergeFrom( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression other) { - if (other - == com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object dimensionName_ = ""; - /** - * - * - *
-       * Name of a dimension. The name must refer back to a name in dimensions
-       * field of the request.
-       * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Name of a dimension. The name must refer back to a name in dimensions
-       * field of the request.
-       * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Name of a dimension. The name must refer back to a name in dimensions
-       * field of the request.
-       * 
- * - * string dimension_name = 1; - * - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Name of a dimension. The name must refer back to a name in dimensions
-       * field of the request.
-       * 
- * - * string dimension_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - - dimensionName_ = getDefaultInstance().getDimensionName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Name of a dimension. The name must refer back to a name in dimensions
-       * field of the request.
-       * 
- * - * string dimension_name = 1; - * - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionName_ = 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.analytics.data.v1beta.DimensionExpression.CaseExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionExpression.CaseExpression) - private static final com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DimensionExpression.CaseExpression(); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaseExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaseExpression(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ConcatenateExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @return A list containing the dimensionNames. - */ - java.util.List getDimensionNamesList(); - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @return The count of dimensionNames. - */ - int getDimensionNamesCount(); - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @param index The index of the element to return. - * @return The dimensionNames at the given index. - */ - java.lang.String getDimensionNames(int index); - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the dimensionNames at the given index. - */ - com.google.protobuf.ByteString getDimensionNamesBytes(int index); - - /** - * - * - *
-     * The delimiter placed between dimension names.
-     * Delimiters are often single characters such as "|" or "," but can be
-     * longer strings. If a dimension value contains the delimiter, both will be
-     * present in response with no distinction. For example if dimension 1 value
-     * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-     * response will contain "US,FR,JP".
-     * 
- * - * string delimiter = 2; - * - * @return The delimiter. - */ - java.lang.String getDelimiter(); - /** - * - * - *
-     * The delimiter placed between dimension names.
-     * Delimiters are often single characters such as "|" or "," but can be
-     * longer strings. If a dimension value contains the delimiter, both will be
-     * present in response with no distinction. For example if dimension 1 value
-     * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-     * response will contain "US,FR,JP".
-     * 
- * - * string delimiter = 2; - * - * @return The bytes for delimiter. - */ - com.google.protobuf.ByteString getDelimiterBytes(); - } - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression} - */ - public static final class ConcatenateExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - ConcatenateExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConcatenateExpression.newBuilder() to construct. - private ConcatenateExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConcatenateExpression() { - dimensionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - delimiter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConcatenateExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ConcatenateExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensionNames_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - delimiter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionNames_ = dimensionNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.class, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder - .class); - } - - public static final int DIMENSION_NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList dimensionNames_; - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @return A list containing the dimensionNames. - */ - public com.google.protobuf.ProtocolStringList getDimensionNamesList() { - return dimensionNames_; - } - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @return The count of dimensionNames. - */ - public int getDimensionNamesCount() { - return dimensionNames_.size(); - } - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @param index The index of the element to return. - * @return The dimensionNames at the given index. - */ - public java.lang.String getDimensionNames(int index) { - return dimensionNames_.get(index); - } - /** - * - * - *
-     * Names of dimensions. The names must refer back to names in the dimensions
-     * field of the request.
-     * 
- * - * repeated string dimension_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the dimensionNames at the given index. - */ - public com.google.protobuf.ByteString getDimensionNamesBytes(int index) { - return dimensionNames_.getByteString(index); - } - - public static final int DELIMITER_FIELD_NUMBER = 2; - private volatile java.lang.Object delimiter_; - /** - * - * - *
-     * The delimiter placed between dimension names.
-     * Delimiters are often single characters such as "|" or "," but can be
-     * longer strings. If a dimension value contains the delimiter, both will be
-     * present in response with no distinction. For example if dimension 1 value
-     * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-     * response will contain "US,FR,JP".
-     * 
- * - * string delimiter = 2; - * - * @return The delimiter. - */ - @java.lang.Override - public java.lang.String getDelimiter() { - java.lang.Object ref = delimiter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delimiter_ = s; - return s; - } - } - /** - * - * - *
-     * The delimiter placed between dimension names.
-     * Delimiters are often single characters such as "|" or "," but can be
-     * longer strings. If a dimension value contains the delimiter, both will be
-     * present in response with no distinction. For example if dimension 1 value
-     * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-     * response will contain "US,FR,JP".
-     * 
- * - * string delimiter = 2; - * - * @return The bytes for delimiter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDelimiterBytes() { - java.lang.Object ref = delimiter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - delimiter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < dimensionNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionNames_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delimiter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < dimensionNames_.size(); i++) { - dataSize += computeStringSizeNoTag(dimensionNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getDimensionNamesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delimiter_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression other = - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) obj; - - if (!getDimensionNamesList().equals(other.getDimensionNamesList())) return false; - if (!getDelimiter().equals(other.getDelimiter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionNamesCount() > 0) { - hash = (37 * hash) + DIMENSION_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionNamesList().hashCode(); - } - hash = (37 * hash) + DELIMITER_FIELD_NUMBER; - hash = (53 * hash) + getDelimiter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.class, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder - .class); - } - - // Construct using - // com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dimensionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - delimiter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression build() { - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - buildPartial() { - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression result = - new com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - dimensionNames_ = dimensionNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionNames_ = dimensionNames_; - result.delimiter_ = delimiter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) { - return mergeFrom( - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression other) { - if (other - == com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance()) return this; - if (!other.dimensionNames_.isEmpty()) { - if (dimensionNames_.isEmpty()) { - dimensionNames_ = other.dimensionNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionNamesIsMutable(); - dimensionNames_.addAll(other.dimensionNames_); - } - onChanged(); - } - if (!other.getDelimiter().isEmpty()) { - delimiter_ = other.delimiter_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList dimensionNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureDimensionNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionNames_ = new com.google.protobuf.LazyStringArrayList(dimensionNames_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @return A list containing the dimensionNames. - */ - public com.google.protobuf.ProtocolStringList getDimensionNamesList() { - return dimensionNames_.getUnmodifiableView(); - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @return The count of dimensionNames. - */ - public int getDimensionNamesCount() { - return dimensionNames_.size(); - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @param index The index of the element to return. - * @return The dimensionNames at the given index. - */ - public java.lang.String getDimensionNames(int index) { - return dimensionNames_.get(index); - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the dimensionNames at the given index. - */ - public com.google.protobuf.ByteString getDimensionNamesBytes(int index) { - return dimensionNames_.getByteString(index); - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @param index The index to set the value at. - * @param value The dimensionNames to set. - * @return This builder for chaining. - */ - public Builder setDimensionNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionNamesIsMutable(); - dimensionNames_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @param value The dimensionNames to add. - * @return This builder for chaining. - */ - public Builder addDimensionNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionNamesIsMutable(); - dimensionNames_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @param values The dimensionNames to add. - * @return This builder for chaining. - */ - public Builder addAllDimensionNames(java.lang.Iterable values) { - ensureDimensionNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionNames_); - onChanged(); - return this; - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionNames() { - dimensionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Names of dimensions. The names must refer back to names in the dimensions
-       * field of the request.
-       * 
- * - * repeated string dimension_names = 1; - * - * @param value The bytes of the dimensionNames to add. - * @return This builder for chaining. - */ - public Builder addDimensionNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDimensionNamesIsMutable(); - dimensionNames_.add(value); - onChanged(); - return this; - } - - private java.lang.Object delimiter_ = ""; - /** - * - * - *
-       * The delimiter placed between dimension names.
-       * Delimiters are often single characters such as "|" or "," but can be
-       * longer strings. If a dimension value contains the delimiter, both will be
-       * present in response with no distinction. For example if dimension 1 value
-       * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-       * response will contain "US,FR,JP".
-       * 
- * - * string delimiter = 2; - * - * @return The delimiter. - */ - public java.lang.String getDelimiter() { - java.lang.Object ref = delimiter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - delimiter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The delimiter placed between dimension names.
-       * Delimiters are often single characters such as "|" or "," but can be
-       * longer strings. If a dimension value contains the delimiter, both will be
-       * present in response with no distinction. For example if dimension 1 value
-       * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-       * response will contain "US,FR,JP".
-       * 
- * - * string delimiter = 2; - * - * @return The bytes for delimiter. - */ - public com.google.protobuf.ByteString getDelimiterBytes() { - java.lang.Object ref = delimiter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - delimiter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The delimiter placed between dimension names.
-       * Delimiters are often single characters such as "|" or "," but can be
-       * longer strings. If a dimension value contains the delimiter, both will be
-       * present in response with no distinction. For example if dimension 1 value
-       * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-       * response will contain "US,FR,JP".
-       * 
- * - * string delimiter = 2; - * - * @param value The delimiter to set. - * @return This builder for chaining. - */ - public Builder setDelimiter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - delimiter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The delimiter placed between dimension names.
-       * Delimiters are often single characters such as "|" or "," but can be
-       * longer strings. If a dimension value contains the delimiter, both will be
-       * present in response with no distinction. For example if dimension 1 value
-       * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-       * response will contain "US,FR,JP".
-       * 
- * - * string delimiter = 2; - * - * @return This builder for chaining. - */ - public Builder clearDelimiter() { - - delimiter_ = getDefaultInstance().getDelimiter(); - onChanged(); - return this; - } - /** - * - * - *
-       * The delimiter placed between dimension names.
-       * Delimiters are often single characters such as "|" or "," but can be
-       * longer strings. If a dimension value contains the delimiter, both will be
-       * present in response with no distinction. For example if dimension 1 value
-       * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
-       * response will contain "US,FR,JP".
-       * 
- * - * string delimiter = 2; - * - * @param value The bytes for delimiter to set. - * @return This builder for chaining. - */ - public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - delimiter_ = 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.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - private static final com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression(); - } - - public static com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConcatenateExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConcatenateExpression(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int oneExpressionCase_ = 0; - private java.lang.Object oneExpression_; - - public enum OneExpressionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LOWER_CASE(4), - UPPER_CASE(5), - CONCATENATE(6), - ONEEXPRESSION_NOT_SET(0); - private final int value; - - private OneExpressionCase(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 OneExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static OneExpressionCase forNumber(int value) { - switch (value) { - case 4: - return LOWER_CASE; - case 5: - return UPPER_CASE; - case 6: - return CONCATENATE; - case 0: - return ONEEXPRESSION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneExpressionCase getOneExpressionCase() { - return OneExpressionCase.forNumber(oneExpressionCase_); - } - - public static final int LOWER_CASE_FIELD_NUMBER = 4; - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * - * @return Whether the lowerCase field is set. - */ - @java.lang.Override - public boolean hasLowerCase() { - return oneExpressionCase_ == 4; - } - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression getLowerCase() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.getDefaultInstance(); - } - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.getDefaultInstance(); - } - - public static final int UPPER_CASE_FIELD_NUMBER = 5; - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * - * @return Whether the upperCase field is set. - */ - @java.lang.Override - public boolean hasUpperCase() { - return oneExpressionCase_ == 5; - } - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression getUpperCase() { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.getDefaultInstance(); - } - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder() { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.getDefaultInstance(); - } - - public static final int CONCATENATE_FIELD_NUMBER = 6; - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return Whether the concatenate field is set. - */ - @java.lang.Override - public boolean hasConcatenate() { - return oneExpressionCase_ == 6; - } - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - getConcatenate() { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder() { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneExpressionCase_ == 4) { - output.writeMessage( - 4, (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 5) { - output.writeMessage( - 5, (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 6) { - output.writeMessage( - 6, - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneExpressionCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DimensionExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionExpression other = - (com.google.analytics.data.v1beta.DimensionExpression) obj; - - if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false; - switch (oneExpressionCase_) { - case 4: - if (!getLowerCase().equals(other.getLowerCase())) return false; - break; - case 5: - if (!getUpperCase().equals(other.getUpperCase())) return false; - break; - case 6: - if (!getConcatenate().equals(other.getConcatenate())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneExpressionCase_) { - case 4: - hash = (37 * hash) + LOWER_CASE_FIELD_NUMBER; - hash = (53 * hash) + getLowerCase().hashCode(); - break; - case 5: - hash = (37 * hash) + UPPER_CASE_FIELD_NUMBER; - hash = (53 * hash) + getUpperCase().hashCode(); - break; - case 6: - hash = (37 * hash) + CONCATENATE_FIELD_NUMBER; - hash = (53 * hash) + getConcatenate().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.DimensionExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Used to express a dimension which is the result of a formula of multiple
-   * dimensions. Example usages:
-   * 1) lower_case(dimension)
-   * 2) concatenate(dimension1, symbol, dimension2).
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionExpression) - com.google.analytics.data.v1beta.DimensionExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionExpression.class, - com.google.analytics.data.v1beta.DimensionExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.DimensionExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - oneExpressionCase_ = 0; - oneExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression build() { - com.google.analytics.data.v1beta.DimensionExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression buildPartial() { - com.google.analytics.data.v1beta.DimensionExpression result = - new com.google.analytics.data.v1beta.DimensionExpression(this); - if (oneExpressionCase_ == 4) { - if (lowerCaseBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = lowerCaseBuilder_.build(); - } - } - if (oneExpressionCase_ == 5) { - if (upperCaseBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = upperCaseBuilder_.build(); - } - } - if (oneExpressionCase_ == 6) { - if (concatenateBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = concatenateBuilder_.build(); - } - } - result.oneExpressionCase_ = oneExpressionCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.DimensionExpression) { - return mergeFrom((com.google.analytics.data.v1beta.DimensionExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionExpression other) { - if (other == com.google.analytics.data.v1beta.DimensionExpression.getDefaultInstance()) - return this; - switch (other.getOneExpressionCase()) { - case LOWER_CASE: - { - mergeLowerCase(other.getLowerCase()); - break; - } - case UPPER_CASE: - { - mergeUpperCase(other.getUpperCase()); - break; - } - case CONCATENATE: - { - mergeConcatenate(other.getConcatenate()); - break; - } - case ONEEXPRESSION_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int oneExpressionCase_ = 0; - private java.lang.Object oneExpression_; - - public OneExpressionCase getOneExpressionCase() { - return OneExpressionCase.forNumber(oneExpressionCase_); - } - - public Builder clearOneExpression() { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder> - lowerCaseBuilder_; - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * - * @return Whether the lowerCase field is set. - */ - @java.lang.Override - public boolean hasLowerCase() { - return oneExpressionCase_ == 4; - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression getLowerCase() { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 4) { - return lowerCaseBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - public Builder setLowerCase( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression value) { - if (lowerCaseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - lowerCaseBuilder_.setMessage(value); - } - oneExpressionCase_ = 4; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - public Builder setLowerCase( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder - builderForValue) { - if (lowerCaseBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - lowerCaseBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 4; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - public Builder mergeLowerCase( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression value) { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4 - && oneExpression_ - != com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.newBuilder( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 4) { - lowerCaseBuilder_.mergeFrom(value); - } - lowerCaseBuilder_.setMessage(value); - } - oneExpressionCase_ = 4; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - public Builder clearLowerCase() { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 4) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - lowerCaseBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder - getLowerCaseBuilder() { - return getLowerCaseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder() { - if ((oneExpressionCase_ == 4) && (lowerCaseBuilder_ != null)) { - return lowerCaseBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder> - getLowerCaseFieldBuilder() { - if (lowerCaseBuilder_ == null) { - if (!(oneExpressionCase_ == 4)) { - oneExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - lowerCaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder>( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 4; - onChanged(); - ; - return lowerCaseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder> - upperCaseBuilder_; - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * - * @return Whether the upperCase field is set. - */ - @java.lang.Override - public boolean hasUpperCase() { - return oneExpressionCase_ == 5; - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression getUpperCase() { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 5) { - return upperCaseBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - public Builder setUpperCase( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression value) { - if (upperCaseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - upperCaseBuilder_.setMessage(value); - } - oneExpressionCase_ = 5; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - public Builder setUpperCase( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder - builderForValue) { - if (upperCaseBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - upperCaseBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 5; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - public Builder mergeUpperCase( - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression value) { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5 - && oneExpression_ - != com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.newBuilder( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 5) { - upperCaseBuilder_.mergeFrom(value); - } - upperCaseBuilder_.setMessage(value); - } - oneExpressionCase_ = 5; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - public Builder clearUpperCase() { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 5) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - upperCaseBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder - getUpperCaseBuilder() { - return getUpperCaseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder() { - if ((oneExpressionCase_ == 5) && (upperCaseBuilder_ != null)) { - return upperCaseBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder> - getUpperCaseFieldBuilder() { - if (upperCaseBuilder_ == null) { - if (!(oneExpressionCase_ == 5)) { - oneExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - upperCaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder>( - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 5; - onChanged(); - ; - return upperCaseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionOrBuilder> - concatenateBuilder_; - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return Whether the concatenate field is set. - */ - @java.lang.Override - public boolean hasConcatenate() { - return oneExpressionCase_ == 6; - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - getConcatenate() { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 6) { - return concatenateBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder setConcatenate( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression value) { - if (concatenateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - concatenateBuilder_.setMessage(value); - } - oneExpressionCase_ = 6; - return this; - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder setConcatenate( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder - builderForValue) { - if (concatenateBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - concatenateBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 6; - return this; - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder mergeConcatenate( - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression value) { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6 - && oneExpression_ - != com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.newBuilder( - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 6) { - concatenateBuilder_.mergeFrom(value); - } - concatenateBuilder_.setMessage(value); - } - oneExpressionCase_ = 6; - return this; - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder clearConcatenate() { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 6) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - concatenateBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder - getConcatenateBuilder() { - return getConcatenateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder() { - if ((oneExpressionCase_ == 6) && (concatenateBuilder_ != null)) { - return concatenateBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionOrBuilder> - getConcatenateFieldBuilder() { - if (concatenateBuilder_ == null) { - if (!(oneExpressionCase_ == 6)) { - oneExpression_ = - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - concatenateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1beta.DimensionExpression - .ConcatenateExpressionOrBuilder>( - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 6; - onChanged(); - ; - return concatenateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.DimensionExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionExpression) - private static final com.google.analytics.data.v1beta.DimensionExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DimensionExpression(); - } - - public static com.google.analytics.data.v1beta.DimensionExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionExpression(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpressionOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpressionOrBuilder.java deleted file mode 100644 index 2f811745..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpressionOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DimensionExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * - * @return Whether the lowerCase field is set. - */ - boolean hasLowerCase(); - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression getLowerCase(); - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - */ - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder(); - - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * - * @return Whether the upperCase field is set. - */ - boolean hasUpperCase(); - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - com.google.analytics.data.v1beta.DimensionExpression.CaseExpression getUpperCase(); - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - */ - com.google.analytics.data.v1beta.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder(); - - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return Whether the concatenate field is set. - */ - boolean hasConcatenate(); - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression getConcatenate(); - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder(); - - public com.google.analytics.data.v1beta.DimensionExpression.OneExpressionCase - getOneExpressionCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeader.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeader.java deleted file mode 100644 index 6b833e2e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeader.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Describes a dimension column in the report. Dimensions requested in a report
- * produce column entries within rows and DimensionHeaders. However, dimensions
- * used exclusively within filters or expressions do not produce columns in a
- * report; correspondingly, those dimensions do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionHeader} - */ -public final class DimensionHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionHeader) - DimensionHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionHeader.newBuilder() to construct. - private DimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionHeader() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionHeader(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DimensionHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionHeader.class, - com.google.analytics.data.v1beta.DimensionHeader.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The dimension's name.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The dimension's name.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionHeader other = - (com.google.analytics.data.v1beta.DimensionHeader) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.DimensionHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Describes a dimension column in the report. Dimensions requested in a report
-   * produce column entries within rows and DimensionHeaders. However, dimensions
-   * used exclusively within filters or expressions do not produce columns in a
-   * report; correspondingly, those dimensions do not produce headers.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionHeader) - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionHeader.class, - com.google.analytics.data.v1beta.DimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.DimensionHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader build() { - com.google.analytics.data.v1beta.DimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader buildPartial() { - com.google.analytics.data.v1beta.DimensionHeader result = - new com.google.analytics.data.v1beta.DimensionHeader(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.analytics.data.v1beta.DimensionHeader) { - return mergeFrom((com.google.analytics.data.v1beta.DimensionHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionHeader other) { - if (other == com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.DimensionHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The dimension's name.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The dimension's name.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The dimension's name.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension's name.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension's name.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.DimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionHeader) - private static final com.google.analytics.data.v1beta.DimensionHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DimensionHeader(); - } - - public static com.google.analytics.data.v1beta.DimensionHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeaderOrBuilder.java deleted file mode 100644 index 75b20154..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeaderOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DimensionHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension's name.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The dimension's name.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java deleted file mode 100644 index f839aa91..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java +++ /dev/null @@ -1,1603 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Explains a dimension.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionMetadata} - */ -public final class DimensionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionMetadata) - DimensionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionMetadata.newBuilder() to construct. - private DimensionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionMetadata() { - apiName_ = ""; - uiName_ = ""; - description_ = ""; - deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - category_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DimensionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - apiName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - uiName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deprecatedApiNames_.add(s); - break; - } - case 40: - { - customDefinition_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - category_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionMetadata.class, - com.google.analytics.data.v1beta.DimensionMetadata.Builder.class); - } - - public static final int API_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object apiName_; - /** - * - * - *
-   * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-   * example, `eventName`.
-   * 
- * - * string api_name = 1; - * - * @return The apiName. - */ - @java.lang.Override - public java.lang.String getApiName() { - java.lang.Object ref = apiName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiName_ = s; - return s; - } - } - /** - * - * - *
-   * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-   * example, `eventName`.
-   * 
- * - * string api_name = 1; - * - * @return The bytes for apiName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getApiNameBytes() { - java.lang.Object ref = apiName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UI_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object uiName_; - /** - * - * - *
-   * This dimension's name within the Google Analytics user interface. For
-   * example, `Event name`.
-   * 
- * - * string ui_name = 2; - * - * @return The uiName. - */ - @java.lang.Override - public java.lang.String getUiName() { - java.lang.Object ref = uiName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uiName_ = s; - return s; - } - } - /** - * - * - *
-   * This dimension's name within the Google Analytics user interface. For
-   * example, `Event name`.
-   * 
- * - * string ui_name = 2; - * - * @return The bytes for uiName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUiNameBytes() { - java.lang.Object ref = uiName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Description of how this dimension is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Description of how this dimension is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATED_API_NAMES_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList deprecatedApiNames_; - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return A list containing the deprecatedApiNames. - */ - public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { - return deprecatedApiNames_; - } - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return The count of deprecatedApiNames. - */ - public int getDeprecatedApiNamesCount() { - return deprecatedApiNames_.size(); - } - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the element to return. - * @return The deprecatedApiNames at the given index. - */ - public java.lang.String getDeprecatedApiNames(int index) { - return deprecatedApiNames_.get(index); - } - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the value to return. - * @return The bytes of the deprecatedApiNames at the given index. - */ - public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { - return deprecatedApiNames_.getByteString(index); - } - - public static final int CUSTOM_DEFINITION_FIELD_NUMBER = 5; - private boolean customDefinition_; - /** - * - * - *
-   * True if the dimension is a custom dimension for this property.
-   * 
- * - * bool custom_definition = 5; - * - * @return The customDefinition. - */ - @java.lang.Override - public boolean getCustomDefinition() { - return customDefinition_; - } - - public static final int CATEGORY_FIELD_NUMBER = 7; - private volatile java.lang.Object category_; - /** - * - * - *
-   * The display name of the category that this dimension belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 7; - * - * @return The category. - */ - @java.lang.Override - public java.lang.String getCategory() { - java.lang.Object ref = category_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - category_ = s; - return s; - } - } - /** - * - * - *
-   * The display name of the category that this dimension belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 7; - * - * @return The bytes for category. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCategoryBytes() { - java.lang.Object ref = category_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - category_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(apiName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - for (int i = 0; i < deprecatedApiNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deprecatedApiNames_.getRaw(i)); - } - if (customDefinition_ != false) { - output.writeBool(5, customDefinition_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, category_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - { - int dataSize = 0; - for (int i = 0; i < deprecatedApiNames_.size(); i++) { - dataSize += computeStringSizeNoTag(deprecatedApiNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getDeprecatedApiNamesList().size(); - } - if (customDefinition_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, customDefinition_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, category_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DimensionMetadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionMetadata other = - (com.google.analytics.data.v1beta.DimensionMetadata) obj; - - if (!getApiName().equals(other.getApiName())) return false; - if (!getUiName().equals(other.getUiName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getDeprecatedApiNamesList().equals(other.getDeprecatedApiNamesList())) return false; - if (getCustomDefinition() != other.getCustomDefinition()) return false; - if (!getCategory().equals(other.getCategory())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + API_NAME_FIELD_NUMBER; - hash = (53 * hash) + getApiName().hashCode(); - hash = (37 * hash) + UI_NAME_FIELD_NUMBER; - hash = (53 * hash) + getUiName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getDeprecatedApiNamesCount() > 0) { - hash = (37 * hash) + DEPRECATED_API_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getDeprecatedApiNamesList().hashCode(); - } - hash = (37 * hash) + CUSTOM_DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustomDefinition()); - hash = (37 * hash) + CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + getCategory().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.DimensionMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Explains a dimension.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionMetadata) - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionMetadata.class, - com.google.analytics.data.v1beta.DimensionMetadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.DimensionMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - apiName_ = ""; - - uiName_ = ""; - - description_ = ""; - - deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - customDefinition_ = false; - - category_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadata getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadata build() { - com.google.analytics.data.v1beta.DimensionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadata buildPartial() { - com.google.analytics.data.v1beta.DimensionMetadata result = - new com.google.analytics.data.v1beta.DimensionMetadata(this); - int from_bitField0_ = bitField0_; - result.apiName_ = apiName_; - result.uiName_ = uiName_; - result.description_ = description_; - if (((bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.deprecatedApiNames_ = deprecatedApiNames_; - result.customDefinition_ = customDefinition_; - result.category_ = category_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.DimensionMetadata) { - return mergeFrom((com.google.analytics.data.v1beta.DimensionMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionMetadata other) { - if (other == com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance()) - return this; - if (!other.getApiName().isEmpty()) { - apiName_ = other.apiName_; - onChanged(); - } - if (!other.getUiName().isEmpty()) { - uiName_ = other.uiName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.deprecatedApiNames_.isEmpty()) { - if (deprecatedApiNames_.isEmpty()) { - deprecatedApiNames_ = other.deprecatedApiNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.addAll(other.deprecatedApiNames_); - } - onChanged(); - } - if (other.getCustomDefinition() != false) { - setCustomDefinition(other.getCustomDefinition()); - } - if (!other.getCategory().isEmpty()) { - category_ = other.category_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object apiName_ = ""; - /** - * - * - *
-     * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-     * example, `eventName`.
-     * 
- * - * string api_name = 1; - * - * @return The apiName. - */ - public java.lang.String getApiName() { - java.lang.Object ref = apiName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-     * example, `eventName`.
-     * 
- * - * string api_name = 1; - * - * @return The bytes for apiName. - */ - public com.google.protobuf.ByteString getApiNameBytes() { - java.lang.Object ref = apiName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-     * example, `eventName`.
-     * 
- * - * string api_name = 1; - * - * @param value The apiName to set. - * @return This builder for chaining. - */ - public Builder setApiName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-     * example, `eventName`.
-     * 
- * - * string api_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearApiName() { - - apiName_ = getDefaultInstance().getApiName(); - onChanged(); - return this; - } - /** - * - * - *
-     * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-     * example, `eventName`.
-     * 
- * - * string api_name = 1; - * - * @param value The bytes for apiName to set. - * @return This builder for chaining. - */ - public Builder setApiNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiName_ = value; - onChanged(); - return this; - } - - private java.lang.Object uiName_ = ""; - /** - * - * - *
-     * This dimension's name within the Google Analytics user interface. For
-     * example, `Event name`.
-     * 
- * - * string ui_name = 2; - * - * @return The uiName. - */ - public java.lang.String getUiName() { - java.lang.Object ref = uiName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uiName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This dimension's name within the Google Analytics user interface. For
-     * example, `Event name`.
-     * 
- * - * string ui_name = 2; - * - * @return The bytes for uiName. - */ - public com.google.protobuf.ByteString getUiNameBytes() { - java.lang.Object ref = uiName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This dimension's name within the Google Analytics user interface. For
-     * example, `Event name`.
-     * 
- * - * string ui_name = 2; - * - * @param value The uiName to set. - * @return This builder for chaining. - */ - public Builder setUiName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uiName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This dimension's name within the Google Analytics user interface. For
-     * example, `Event name`.
-     * 
- * - * string ui_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearUiName() { - - uiName_ = getDefaultInstance().getUiName(); - onChanged(); - return this; - } - /** - * - * - *
-     * This dimension's name within the Google Analytics user interface. For
-     * example, `Event name`.
-     * 
- * - * string ui_name = 2; - * - * @param value The bytes for uiName to set. - * @return This builder for chaining. - */ - public Builder setUiNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uiName_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Description of how this dimension is used and calculated.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Description of how this dimension is used and calculated.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Description of how this dimension is used and calculated.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Description of how this dimension is used and calculated.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Description of how this dimension is used and calculated.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList deprecatedApiNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureDeprecatedApiNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(deprecatedApiNames_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @return A list containing the deprecatedApiNames. - */ - public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { - return deprecatedApiNames_.getUnmodifiableView(); - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @return The count of deprecatedApiNames. - */ - public int getDeprecatedApiNamesCount() { - return deprecatedApiNames_.size(); - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the element to return. - * @return The deprecatedApiNames at the given index. - */ - public java.lang.String getDeprecatedApiNames(int index) { - return deprecatedApiNames_.get(index); - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the value to return. - * @return The bytes of the deprecatedApiNames at the given index. - */ - public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { - return deprecatedApiNames_.getByteString(index); - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index to set the value at. - * @param value The deprecatedApiNames to set. - * @return This builder for chaining. - */ - public Builder setDeprecatedApiNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param value The deprecatedApiNames to add. - * @return This builder for chaining. - */ - public Builder addDeprecatedApiNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param values The deprecatedApiNames to add. - * @return This builder for chaining. - */ - public Builder addAllDeprecatedApiNames(java.lang.Iterable values) { - ensureDeprecatedApiNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deprecatedApiNames_); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @return This builder for chaining. - */ - public Builder clearDeprecatedApiNames() { - deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this dimension. If populated, this
-     * dimension is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the dimension will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param value The bytes of the deprecatedApiNames to add. - * @return This builder for chaining. - */ - public Builder addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.add(value); - onChanged(); - return this; - } - - private boolean customDefinition_; - /** - * - * - *
-     * True if the dimension is a custom dimension for this property.
-     * 
- * - * bool custom_definition = 5; - * - * @return The customDefinition. - */ - @java.lang.Override - public boolean getCustomDefinition() { - return customDefinition_; - } - /** - * - * - *
-     * True if the dimension is a custom dimension for this property.
-     * 
- * - * bool custom_definition = 5; - * - * @param value The customDefinition to set. - * @return This builder for chaining. - */ - public Builder setCustomDefinition(boolean value) { - - customDefinition_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * True if the dimension is a custom dimension for this property.
-     * 
- * - * bool custom_definition = 5; - * - * @return This builder for chaining. - */ - public Builder clearCustomDefinition() { - - customDefinition_ = false; - onChanged(); - return this; - } - - private java.lang.Object category_ = ""; - /** - * - * - *
-     * The display name of the category that this dimension belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 7; - * - * @return The category. - */ - public java.lang.String getCategory() { - java.lang.Object ref = category_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - category_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The display name of the category that this dimension belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 7; - * - * @return The bytes for category. - */ - public com.google.protobuf.ByteString getCategoryBytes() { - java.lang.Object ref = category_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - category_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The display name of the category that this dimension belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 7; - * - * @param value The category to set. - * @return This builder for chaining. - */ - public Builder setCategory(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - category_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The display name of the category that this dimension belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 7; - * - * @return This builder for chaining. - */ - public Builder clearCategory() { - - category_ = getDefaultInstance().getCategory(); - onChanged(); - return this; - } - /** - * - * - *
-     * The display name of the category that this dimension belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 7; - * - * @param value The bytes for category to set. - * @return This builder for chaining. - */ - public Builder setCategoryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - category_ = 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.analytics.data.v1beta.DimensionMetadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionMetadata) - private static final com.google.analytics.data.v1beta.DimensionMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DimensionMetadata(); - } - - public static com.google.analytics.data.v1beta.DimensionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadataOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadataOrBuilder.java deleted file mode 100644 index eeecb63d..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadataOrBuilder.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DimensionMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-   * example, `eventName`.
-   * 
- * - * string api_name = 1; - * - * @return The apiName. - */ - java.lang.String getApiName(); - /** - * - * - *
-   * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
-   * example, `eventName`.
-   * 
- * - * string api_name = 1; - * - * @return The bytes for apiName. - */ - com.google.protobuf.ByteString getApiNameBytes(); - - /** - * - * - *
-   * This dimension's name within the Google Analytics user interface. For
-   * example, `Event name`.
-   * 
- * - * string ui_name = 2; - * - * @return The uiName. - */ - java.lang.String getUiName(); - /** - * - * - *
-   * This dimension's name within the Google Analytics user interface. For
-   * example, `Event name`.
-   * 
- * - * string ui_name = 2; - * - * @return The bytes for uiName. - */ - com.google.protobuf.ByteString getUiNameBytes(); - - /** - * - * - *
-   * Description of how this dimension is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Description of how this dimension is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return A list containing the deprecatedApiNames. - */ - java.util.List getDeprecatedApiNamesList(); - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return The count of deprecatedApiNames. - */ - int getDeprecatedApiNamesCount(); - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the element to return. - * @return The deprecatedApiNames at the given index. - */ - java.lang.String getDeprecatedApiNames(int index); - /** - * - * - *
-   * Still usable but deprecated names for this dimension. If populated, this
-   * dimension is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the dimension will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the value to return. - * @return The bytes of the deprecatedApiNames at the given index. - */ - com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index); - - /** - * - * - *
-   * True if the dimension is a custom dimension for this property.
-   * 
- * - * bool custom_definition = 5; - * - * @return The customDefinition. - */ - boolean getCustomDefinition(); - - /** - * - * - *
-   * The display name of the category that this dimension belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 7; - * - * @return The category. - */ - java.lang.String getCategory(); - /** - * - * - *
-   * The display name of the category that this dimension belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 7; - * - * @return The bytes for category. - */ - com.google.protobuf.ByteString getCategoryBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionOrBuilder.java deleted file mode 100644 index 0bb8a9f9..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DimensionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Dimension) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of the dimension. See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * If `dimensionExpression` is specified, `name` can be any string that you
-   * would like within the allowed character set. For example if a
-   * `dimensionExpression` concatenates `country` and `city`, you could call
-   * that dimension `countryAndCity`. Dimension names that you choose must match
-   * the regular expression `^[a-zA-Z0-9_]$`.
-   * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-   * `dimensionExpression`, and `pivots`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the dimension. See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * If `dimensionExpression` is specified, `name` can be any string that you
-   * would like within the allowed character set. For example if a
-   * `dimensionExpression` concatenates `country` and `city`, you could call
-   * that dimension `countryAndCity`. Dimension names that you choose must match
-   * the regular expression `^[a-zA-Z0-9_]$`.
-   * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
-   * `dimensionExpression`, and `pivots`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * One dimension can be the result of an expression of multiple dimensions.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * - * @return Whether the dimensionExpression field is set. - */ - boolean hasDimensionExpression(); - /** - * - * - *
-   * One dimension can be the result of an expression of multiple dimensions.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - com.google.analytics.data.v1beta.DimensionExpression getDimensionExpression(); - /** - * - * - *
-   * One dimension can be the result of an expression of multiple dimensions.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - com.google.analytics.data.v1beta.DimensionExpressionOrBuilder getDimensionExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValue.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValue.java deleted file mode 100644 index 524b4c88..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValue.java +++ /dev/null @@ -1,765 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The value of a dimension.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionValue} - */ -public final class DimensionValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.DimensionValue) - DimensionValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionValue.newBuilder() to construct. - private DimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionValue() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DimensionValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - oneValueCase_ = 1; - oneValue_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionValue.class, - com.google.analytics.data.v1beta.DimensionValue.Builder.class); - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public enum OneValueCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VALUE(1), - ONEVALUE_NOT_SET(0); - private final int value; - - private OneValueCase(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 OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 1: - return VALUE; - case 0: - return ONEVALUE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public static final int VALUE_FIELD_NUMBER = 1; - /** - * - * - *
-   * Value as a string if the dimension type is a string.
-   * 
- * - * string value = 1; - * - * @return Whether the value field is set. - */ - public boolean hasValue() { - return oneValueCase_ == 1; - } - /** - * - * - *
-   * Value as a string if the dimension type is a string.
-   * 
- * - * string value = 1; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = ""; - if (oneValueCase_ == 1) { - ref = oneValue_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneValueCase_ == 1) { - oneValue_ = s; - } - return s; - } - } - /** - * - * - *
-   * Value as a string if the dimension type is a string.
-   * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = ""; - if (oneValueCase_ == 1) { - ref = oneValue_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneValueCase_ == 1) { - oneValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneValueCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneValue_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneValueCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneValue_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.DimensionValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.DimensionValue other = - (com.google.analytics.data.v1beta.DimensionValue) obj; - - if (!getOneValueCase().equals(other.getOneValueCase())) return false; - switch (oneValueCase_) { - case 1: - if (!getValue().equals(other.getValue())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 1: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.DimensionValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.DimensionValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 value of a dimension.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.DimensionValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.DimensionValue) - com.google.analytics.data.v1beta.DimensionValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.DimensionValue.class, - com.google.analytics.data.v1beta.DimensionValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.DimensionValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_DimensionValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValue getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.DimensionValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValue build() { - com.google.analytics.data.v1beta.DimensionValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValue buildPartial() { - com.google.analytics.data.v1beta.DimensionValue result = - new com.google.analytics.data.v1beta.DimensionValue(this); - if (oneValueCase_ == 1) { - result.oneValue_ = oneValue_; - } - result.oneValueCase_ = oneValueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.DimensionValue) { - return mergeFrom((com.google.analytics.data.v1beta.DimensionValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionValue other) { - if (other == com.google.analytics.data.v1beta.DimensionValue.getDefaultInstance()) - return this; - switch (other.getOneValueCase()) { - case VALUE: - { - oneValueCase_ = 1; - oneValue_ = other.oneValue_; - onChanged(); - break; - } - case ONEVALUE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.DimensionValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.DimensionValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public Builder clearOneValue() { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-     * Value as a string if the dimension type is a string.
-     * 
- * - * string value = 1; - * - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return oneValueCase_ == 1; - } - /** - * - * - *
-     * Value as a string if the dimension type is a string.
-     * 
- * - * string value = 1; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = ""; - if (oneValueCase_ == 1) { - ref = oneValue_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneValueCase_ == 1) { - oneValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Value as a string if the dimension type is a string.
-     * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = ""; - if (oneValueCase_ == 1) { - ref = oneValue_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneValueCase_ == 1) { - oneValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Value as a string if the dimension type is a string.
-     * 
- * - * string value = 1; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oneValueCase_ = 1; - oneValue_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Value as a string if the dimension type is a string.
-     * 
- * - * string value = 1; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - if (oneValueCase_ == 1) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Value as a string if the dimension type is a string.
-     * 
- * - * string value = 1; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oneValueCase_ = 1; - oneValue_ = 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.analytics.data.v1beta.DimensionValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.DimensionValue) - private static final com.google.analytics.data.v1beta.DimensionValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.DimensionValue(); - } - - public static com.google.analytics.data.v1beta.DimensionValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValueOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValueOrBuilder.java deleted file mode 100644 index b2edeaa4..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValueOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface DimensionValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.DimensionValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Value as a string if the dimension type is a string.
-   * 
- * - * string value = 1; - * - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * - * - *
-   * Value as a string if the dimension type is a string.
-   * 
- * - * string value = 1; - * - * @return The value. - */ - java.lang.String getValue(); - /** - * - * - *
-   * Value as a string if the dimension type is a string.
-   * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - com.google.protobuf.ByteString getValueBytes(); - - public com.google.analytics.data.v1beta.DimensionValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java deleted file mode 100644 index ea691b3e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java +++ /dev/null @@ -1,6293 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter} - */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Filter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Filter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Filter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - fieldName_ = s; - break; - } - case 26: - { - com.google.analytics.data.v1beta.Filter.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.Filter.StringFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1beta.Filter.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.Filter.InListFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_) - .toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.Filter.NumericFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_) - .toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.Filter.BetweenFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 6; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.class, - com.google.analytics.data.v1beta.Filter.Builder.class); - } - - public interface StringFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Filter.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - com.google.analytics.data.v1beta.Filter.StringFilter.MatchType getMatchType(); - - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return The value. - */ - java.lang.String getValue(); - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - com.google.protobuf.ByteString getValueBytes(); - - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - * - * - *
-   * The filter for string
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.StringFilter} - */ - public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Filter.StringFilter) - StringFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringFilter.newBuilder() to construct. - private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StringFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private StringFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - matchType_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: - { - caseSensitive_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.StringFilter.class, - com.google.analytics.data.v1beta.Filter.StringFilter.Builder.class); - } - - /** - * - * - *
-     * The match type of a string filter
-     * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.Filter.StringFilter.MatchType} - */ - public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - * - * - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - * - * - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - * - * - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - * - * - *
-       * Full regular expression match with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - * - * - *
-       * Partial regular expression match with the string value.
-       * 
- * - * PARTIAL_REGEXP = 6; - */ - PARTIAL_REGEXP(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Unspecified
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - * - * - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - * - * - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - * - * - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - * - * - *
-       * Full regular expression match with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - * - * - *
-       * Partial regular expression match with the string value.
-       * 
- * - * PARTIAL_REGEXP = 6; - */ - public static final int PARTIAL_REGEXP_VALUE = 6; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: - return MATCH_TYPE_UNSPECIFIED; - case 1: - return EXACT; - case 2: - return BEGINS_WITH; - case 3: - return ENDS_WITH; - case 4: - return CONTAINS; - case 5: - return FULL_REGEXP; - case 6: - return PARTIAL_REGEXP; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.data.v1beta.Filter.StringFilter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.Filter.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_; - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override - public int getMatchTypeValue() { - return matchType_; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Filter.StringFilter.MatchType result = - com.google.analytics.data.v1beta.Filter.StringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.data.v1beta.Filter.StringFilter.MatchType.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_; - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (matchType_ - != com.google.analytics.data.v1beta.Filter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ - != com.google.analytics.data.v1beta.Filter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Filter.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Filter.StringFilter other = - (com.google.analytics.data.v1beta.Filter.StringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue().equals(other.getValue())) return false; - if (getCaseSensitive() != other.getCaseSensitive()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.Filter.StringFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 filter for string
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.StringFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Filter.StringFilter) - com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.StringFilter.class, - com.google.analytics.data.v1beta.Filter.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Filter.StringFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - matchType_ = 0; - - value_ = ""; - - caseSensitive_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter build() { - com.google.analytics.data.v1beta.Filter.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter buildPartial() { - com.google.analytics.data.v1beta.Filter.StringFilter result = - new com.google.analytics.data.v1beta.Filter.StringFilter(this); - result.matchType_ = matchType_; - result.value_ = value_; - result.caseSensitive_ = caseSensitive_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.Filter.StringFilter) { - return mergeFrom((com.google.analytics.data.v1beta.Filter.StringFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.StringFilter other) { - if (other == com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance()) - return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Filter.StringFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.StringFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int matchType_ = 0; - /** - * - * - *
-       * The match type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override - public int getMatchTypeValue() { - return matchType_; - } - /** - * - * - *
-       * The match type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - - matchType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The match type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Filter.StringFilter.MatchType result = - com.google.analytics.data.v1beta.Filter.StringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.data.v1beta.Filter.StringFilter.MatchType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The match type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType( - com.google.analytics.data.v1beta.Filter.StringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The match type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearMatchType() { - - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * - * - *
-       * The string value used for the matching.
-       * 
- * - * string value = 2; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The string value used for the matching.
-       * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The string value used for the matching.
-       * 
- * - * string value = 2; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The string value used for the matching.
-       * 
- * - * string value = 2; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * - * - *
-       * The string value used for the matching.
-       * 
- * - * string value = 2; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private boolean caseSensitive_; - /** - * - * - *
-       * If true, the string value is case sensitive.
-       * 
- * - * bool case_sensitive = 3; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - * - * - *
-       * If true, the string value is case sensitive.
-       * 
- * - * bool case_sensitive = 3; - * - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * If true, the string value is case sensitive.
-       * 
- * - * bool case_sensitive = 3; - * - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - - caseSensitive_ = 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.analytics.data.v1beta.Filter.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Filter.StringFilter) - private static final com.google.analytics.data.v1beta.Filter.StringFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Filter.StringFilter(); - } - - public static com.google.analytics.data.v1beta.Filter.StringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StringFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface InListFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Filter.InListFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString getValuesBytes(int index); - - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - * - * - *
-   * The result needs to be in a list of string values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.InListFilter} - */ - public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Filter.InListFilter) - InListFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use InListFilter.newBuilder() to construct. - private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InListFilter() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InListFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private InListFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - break; - } - case 16: - { - caseSensitive_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.InListFilter.class, - com.google.analytics.data.v1beta.Filter.InListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-     * The list of string values.
-     * Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; - private boolean caseSensitive_; - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (caseSensitive_ != false) { - output.writeBool(2, caseSensitive_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Filter.InListFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Filter.InListFilter other = - (com.google.analytics.data.v1beta.Filter.InListFilter) obj; - - if (!getValuesList().equals(other.getValuesList())) return false; - if (getCaseSensitive() != other.getCaseSensitive()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.Filter.InListFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 result needs to be in a list of string values.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.InListFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Filter.InListFilter) - com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.InListFilter.class, - com.google.analytics.data.v1beta.Filter.InListFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Filter.InListFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - caseSensitive_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilter build() { - com.google.analytics.data.v1beta.Filter.InListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilter buildPartial() { - com.google.analytics.data.v1beta.Filter.InListFilter result = - new com.google.analytics.data.v1beta.Filter.InListFilter(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - result.caseSensitive_ = caseSensitive_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.Filter.InListFilter) { - return mergeFrom((com.google.analytics.data.v1beta.Filter.InListFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.InListFilter other) { - if (other == com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance()) - return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Filter.InListFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.InListFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - return this; - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * The list of string values.
-       * Must be non-empty.
-       * 
- * - * repeated string values = 1; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - - private boolean caseSensitive_; - /** - * - * - *
-       * If true, the string value is case sensitive.
-       * 
- * - * bool case_sensitive = 2; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - * - * - *
-       * If true, the string value is case sensitive.
-       * 
- * - * bool case_sensitive = 2; - * - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * If true, the string value is case sensitive.
-       * 
- * - * bool case_sensitive = 2; - * - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - - caseSensitive_ = 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.analytics.data.v1beta.Filter.InListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Filter.InListFilter) - private static final com.google.analytics.data.v1beta.Filter.InListFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Filter.InListFilter(); - } - - public static com.google.analytics.data.v1beta.Filter.InListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InListFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface NumericFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Filter.NumericFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return The enum numeric value on the wire for operation. - */ - int getOperationValue(); - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - com.google.analytics.data.v1beta.Filter.NumericFilter.Operation getOperation(); - - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - * - * @return The value. - */ - com.google.analytics.data.v1beta.NumericValue getValue(); - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - com.google.analytics.data.v1beta.NumericValueOrBuilder getValueOrBuilder(); - } - /** - * - * - *
-   * Filters for numeric or date values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.NumericFilter} - */ - public static final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Filter.NumericFilter) - NumericFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericFilter.newBuilder() to construct. - private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NumericFilter() { - operation_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NumericFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NumericFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - operation_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1beta.NumericValue.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = - input.readMessage( - com.google.analytics.data.v1beta.NumericValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.NumericFilter.class, - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder.class); - } - - /** - * - * - *
-     * The operation applied to a numeric filter
-     * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.Filter.NumericFilter.Operation} - */ - public enum Operation implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified.
-       * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - OPERATION_UNSPECIFIED(0), - /** - * - * - *
-       * Equal
-       * 
- * - * EQUAL = 1; - */ - EQUAL(1), - /** - * - * - *
-       * Less than
-       * 
- * - * LESS_THAN = 2; - */ - LESS_THAN(2), - /** - * - * - *
-       * Less than or equal
-       * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - LESS_THAN_OR_EQUAL(3), - /** - * - * - *
-       * Greater than
-       * 
- * - * GREATER_THAN = 4; - */ - GREATER_THAN(4), - /** - * - * - *
-       * Greater than or equal
-       * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - GREATER_THAN_OR_EQUAL(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Unspecified.
-       * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - public static final int OPERATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Equal
-       * 
- * - * EQUAL = 1; - */ - public static final int EQUAL_VALUE = 1; - /** - * - * - *
-       * Less than
-       * 
- * - * LESS_THAN = 2; - */ - public static final int LESS_THAN_VALUE = 2; - /** - * - * - *
-       * Less than or equal
-       * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - public static final int LESS_THAN_OR_EQUAL_VALUE = 3; - /** - * - * - *
-       * Greater than
-       * 
- * - * GREATER_THAN = 4; - */ - public static final int GREATER_THAN_VALUE = 4; - /** - * - * - *
-       * Greater than or equal
-       * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operation 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 Operation forNumber(int value) { - switch (value) { - case 0: - return OPERATION_UNSPECIFIED; - case 1: - return EQUAL; - case 2: - return LESS_THAN; - case 3: - return LESS_THAN_OR_EQUAL; - case 4: - return GREATER_THAN; - case 5: - return GREATER_THAN_OR_EQUAL; - 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 Operation findValueByNumber(int number) { - return Operation.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.analytics.data.v1beta.Filter.NumericFilter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation 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 Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.Filter.NumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_; - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override - public int getOperationValue() { - return operation_; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Filter.NumericFilter.Operation result = - com.google.analytics.data.v1beta.Filter.NumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.data.v1beta.Filter.NumericFilter.Operation.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1beta.NumericValue value_; - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return value_ != null; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - * - * @return The value. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue getValue() { - return value_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : value_; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValueOrBuilder getValueOrBuilder() { - return getValue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operation_ - != com.google.analytics.data.v1beta.Filter.NumericFilter.Operation.OPERATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, operation_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operation_ - != com.google.analytics.data.v1beta.Filter.NumericFilter.Operation.OPERATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Filter.NumericFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Filter.NumericFilter other = - (com.google.analytics.data.v1beta.Filter.NumericFilter) obj; - - if (operation_ != other.operation_) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.Filter.NumericFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Filters for numeric or date values.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.NumericFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Filter.NumericFilter) - com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.NumericFilter.class, - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Filter.NumericFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - operation_ = 0; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter build() { - com.google.analytics.data.v1beta.Filter.NumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter buildPartial() { - com.google.analytics.data.v1beta.Filter.NumericFilter result = - new com.google.analytics.data.v1beta.Filter.NumericFilter(this); - result.operation_ = operation_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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.analytics.data.v1beta.Filter.NumericFilter) { - return mergeFrom((com.google.analytics.data.v1beta.Filter.NumericFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.NumericFilter other) { - if (other == com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance()) - return this; - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Filter.NumericFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.NumericFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operation_ = 0; - /** - * - * - *
-       * The operation type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override - public int getOperationValue() { - return operation_; - } - /** - * - * - *
-       * The operation type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @param value The enum numeric value on the wire for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationValue(int value) { - - operation_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The operation type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Filter.NumericFilter.Operation result = - com.google.analytics.data.v1beta.Filter.NumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.data.v1beta.Filter.NumericFilter.Operation.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The operation type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation( - com.google.analytics.data.v1beta.Filter.NumericFilter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The operation type for this filter.
-       * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder> - valueBuilder_; - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - * - * @return The value. - */ - public com.google.analytics.data.v1beta.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - public Builder setValue(com.google.analytics.data.v1beta.NumericValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - public Builder setValue( - com.google.analytics.data.v1beta.NumericValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - public Builder mergeValue(com.google.analytics.data.v1beta.NumericValue value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - com.google.analytics.data.v1beta.NumericValue.newBuilder(value_) - .mergeFrom(value) - .buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - public com.google.analytics.data.v1beta.NumericValue.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - public com.google.analytics.data.v1beta.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : value_; - } - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder>( - getValue(), getParentForChildren(), isClean()); - value_ = null; - } - return valueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Filter.NumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Filter.NumericFilter) - private static final com.google.analytics.data.v1beta.Filter.NumericFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Filter.NumericFilter(); - } - - public static com.google.analytics.data.v1beta.Filter.NumericFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface BetweenFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Filter.BetweenFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - boolean hasFromValue(); - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - * - * @return The fromValue. - */ - com.google.analytics.data.v1beta.NumericValue getFromValue(); - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - com.google.analytics.data.v1beta.NumericValueOrBuilder getFromValueOrBuilder(); - - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - boolean hasToValue(); - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - * - * @return The toValue. - */ - com.google.analytics.data.v1beta.NumericValue getToValue(); - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - com.google.analytics.data.v1beta.NumericValueOrBuilder getToValueOrBuilder(); - } - /** - * - * - *
-   * To express that the result needs to be between two numbers (inclusive).
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.BetweenFilter} - */ - public static final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Filter.BetweenFilter) - BetweenFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use BetweenFilter.newBuilder() to construct. - private BetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BetweenFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BetweenFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BetweenFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.NumericValue.Builder subBuilder = null; - if (fromValue_ != null) { - subBuilder = fromValue_.toBuilder(); - } - fromValue_ = - input.readMessage( - com.google.analytics.data.v1beta.NumericValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fromValue_); - fromValue_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1beta.NumericValue.Builder subBuilder = null; - if (toValue_ != null) { - subBuilder = toValue_.toBuilder(); - } - toValue_ = - input.readMessage( - com.google.analytics.data.v1beta.NumericValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(toValue_); - toValue_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.BetweenFilter.class, - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.data.v1beta.NumericValue fromValue_; - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - @java.lang.Override - public boolean hasFromValue() { - return fromValue_ != null; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - * - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue getFromValue() { - return fromValue_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : fromValue_; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValueOrBuilder getFromValueOrBuilder() { - return getFromValue(); - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1beta.NumericValue toValue_; - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - @java.lang.Override - public boolean hasToValue() { - return toValue_ != null; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - * - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue getToValue() { - return toValue_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : toValue_; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValueOrBuilder getToValueOrBuilder() { - return getToValue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (fromValue_ != null) { - output.writeMessage(1, getFromValue()); - } - if (toValue_ != null) { - output.writeMessage(2, getToValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fromValue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue()); - } - if (toValue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Filter.BetweenFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Filter.BetweenFilter other = - (com.google.analytics.data.v1beta.Filter.BetweenFilter) obj; - - if (hasFromValue() != other.hasFromValue()) return false; - if (hasFromValue()) { - if (!getFromValue().equals(other.getFromValue())) return false; - } - if (hasToValue() != other.hasToValue()) return false; - if (hasToValue()) { - if (!getToValue().equals(other.getToValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFromValue()) { - hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getFromValue().hashCode(); - } - if (hasToValue()) { - hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getToValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.Filter.BetweenFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * To express that the result needs to be between two numbers (inclusive).
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter.BetweenFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Filter.BetweenFilter) - com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.BetweenFilter.class, - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Filter.BetweenFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (fromValueBuilder_ == null) { - fromValue_ = null; - } else { - fromValue_ = null; - fromValueBuilder_ = null; - } - if (toValueBuilder_ == null) { - toValue_ = null; - } else { - toValue_ = null; - toValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilter build() { - com.google.analytics.data.v1beta.Filter.BetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilter buildPartial() { - com.google.analytics.data.v1beta.Filter.BetweenFilter result = - new com.google.analytics.data.v1beta.Filter.BetweenFilter(this); - if (fromValueBuilder_ == null) { - result.fromValue_ = fromValue_; - } else { - result.fromValue_ = fromValueBuilder_.build(); - } - if (toValueBuilder_ == null) { - result.toValue_ = toValue_; - } else { - result.toValue_ = toValueBuilder_.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.analytics.data.v1beta.Filter.BetweenFilter) { - return mergeFrom((com.google.analytics.data.v1beta.Filter.BetweenFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.BetweenFilter other) { - if (other == com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance()) - return this; - if (other.hasFromValue()) { - mergeFromValue(other.getFromValue()); - } - if (other.hasToValue()) { - mergeToValue(other.getToValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Filter.BetweenFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.BetweenFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.data.v1beta.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder> - fromValueBuilder_; - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - public boolean hasFromValue() { - return fromValueBuilder_ != null || fromValue_ != null; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - * - * @return The fromValue. - */ - public com.google.analytics.data.v1beta.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - public Builder setFromValue(com.google.analytics.data.v1beta.NumericValue value) { - if (fromValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fromValue_ = value; - onChanged(); - } else { - fromValueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - public Builder setFromValue( - com.google.analytics.data.v1beta.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - onChanged(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - public Builder mergeFromValue(com.google.analytics.data.v1beta.NumericValue value) { - if (fromValueBuilder_ == null) { - if (fromValue_ != null) { - fromValue_ = - com.google.analytics.data.v1beta.NumericValue.newBuilder(fromValue_) - .mergeFrom(value) - .buildPartial(); - } else { - fromValue_ = value; - } - onChanged(); - } else { - fromValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - public Builder clearFromValue() { - if (fromValueBuilder_ == null) { - fromValue_ = null; - onChanged(); - } else { - fromValue_ = null; - fromValueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - public com.google.analytics.data.v1beta.NumericValue.Builder getFromValueBuilder() { - - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - public com.google.analytics.data.v1beta.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : fromValue_; - } - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder>( - getFromValue(), getParentForChildren(), isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.data.v1beta.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder> - toValueBuilder_; - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - public boolean hasToValue() { - return toValueBuilder_ != null || toValue_ != null; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - * - * @return The toValue. - */ - public com.google.analytics.data.v1beta.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - public Builder setToValue(com.google.analytics.data.v1beta.NumericValue value) { - if (toValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toValue_ = value; - onChanged(); - } else { - toValueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - public Builder setToValue( - com.google.analytics.data.v1beta.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - onChanged(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - public Builder mergeToValue(com.google.analytics.data.v1beta.NumericValue value) { - if (toValueBuilder_ == null) { - if (toValue_ != null) { - toValue_ = - com.google.analytics.data.v1beta.NumericValue.newBuilder(toValue_) - .mergeFrom(value) - .buildPartial(); - } else { - toValue_ = value; - } - onChanged(); - } else { - toValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - public Builder clearToValue() { - if (toValueBuilder_ == null) { - toValue_ = null; - onChanged(); - } else { - toValue_ = null; - toValueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - public com.google.analytics.data.v1beta.NumericValue.Builder getToValueBuilder() { - - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - public com.google.analytics.data.v1beta.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null - ? com.google.analytics.data.v1beta.NumericValue.getDefaultInstance() - : toValue_; - } - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.NumericValue, - com.google.analytics.data.v1beta.NumericValue.Builder, - com.google.analytics.data.v1beta.NumericValueOrBuilder>( - getToValue(), getParentForChildren(), isClean()); - toValue_ = null; - } - return toValueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Filter.BetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Filter.BetweenFilter) - private static final com.google.analytics.data.v1beta.Filter.BetweenFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Filter.BetweenFilter(); - } - - public static com.google.analytics.data.v1beta.Filter.BetweenFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BetweenFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BetweenFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - - public enum OneFilterCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(3), - IN_LIST_FILTER(4), - NUMERIC_FILTER(5), - BETWEEN_FILTER(6), - ONEFILTER_NOT_SET(0); - private final int value; - - private OneFilterCase(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 OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 3: - return STRING_FILTER; - case 4: - return IN_LIST_FILTER; - case 5: - return NUMERIC_FILTER; - case 6: - return BETWEEN_FILTER; - case 0: - return ONEFILTER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase getOneFilterCase() { - return OneFilterCase.forNumber(oneFilterCase_); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fieldName_; - /** - * - * - *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - * - * - *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
-   * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRING_FILTER_FIELD_NUMBER = 3; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 3; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter getStringFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilter getInListFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder - getNumericFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 6; - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder - getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - output.writeMessage(6, (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Filter)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Filter other = (com.google.analytics.data.v1beta.Filter) obj; - - if (!getFieldName().equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 3: - if (!getStringFilter().equals(other.getStringFilter())) return false; - break; - case 4: - if (!getInListFilter().equals(other.getInListFilter())) return false; - break; - case 5: - if (!getNumericFilter().equals(other.getNumericFilter())) return false; - break; - case 6: - if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 3: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 6: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Filter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Filter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Filter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * An expression to filter dimension or metric values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Filter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Filter) - com.google.analytics.data.v1beta.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Filter.class, - com.google.analytics.data.v1beta.Filter.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Filter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fieldName_ = ""; - - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Filter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter build() { - com.google.analytics.data.v1beta.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter buildPartial() { - com.google.analytics.data.v1beta.Filter result = - new com.google.analytics.data.v1beta.Filter(this); - result.fieldName_ = fieldName_; - if (oneFilterCase_ == 3) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 4) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 6) { - if (betweenFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - result.oneFilterCase_ = oneFilterCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.Filter) { - return mergeFrom((com.google.analytics.data.v1beta.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Filter other) { - if (other == com.google.analytics.data.v1beta.Filter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - onChanged(); - } - switch (other.getOneFilterCase()) { - case STRING_FILTER: - { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: - { - mergeInListFilter(other.getInListFilter()); - break; - } - case NUMERIC_FILTER: - { - mergeNumericFilter(other.getNumericFilter()); - break; - } - case BETWEEN_FILTER: - { - mergeBetweenFilter(other.getBetweenFilter()); - break; - } - case ONEFILTER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Filter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Filter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - - public OneFilterCase getOneFilterCase() { - return OneFilterCase.forNumber(oneFilterCase_); - } - - public Builder clearOneFilter() { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - return this; - } - - private java.lang.Object fieldName_ = ""; - /** - * - * - *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
-     * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
-     * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
-     * 
- * - * string field_name = 1; - * - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fieldName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
-     * 
- * - * string field_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldName() { - - fieldName_ = getDefaultInstance().getFieldName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
-     * 
- * - * string field_name = 1; - * - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fieldName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.StringFilter, - com.google.analytics.data.v1beta.Filter.StringFilter.Builder, - com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 3; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - public Builder setStringFilter(com.google.analytics.data.v1beta.Filter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - public Builder setStringFilter( - com.google.analytics.data.v1beta.Filter.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1beta.Filter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3 - && oneFilter_ - != com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1beta.Filter.StringFilter.newBuilder( - (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - stringFilterBuilder_.mergeFrom(value); - } - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - public com.google.analytics.data.v1beta.Filter.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder - getStringFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.StringFilter, - com.google.analytics.data.v1beta.Filter.StringFilter.Builder, - com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.data.v1beta.Filter.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.StringFilter, - com.google.analytics.data.v1beta.Filter.StringFilter.Builder, - com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder>( - (com.google.analytics.data.v1beta.Filter.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.InListFilter, - com.google.analytics.data.v1beta.Filter.InListFilter.Builder, - com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - public Builder setInListFilter(com.google.analytics.data.v1beta.Filter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - public Builder setInListFilter( - com.google.analytics.data.v1beta.Filter.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1beta.Filter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ - != com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1beta.Filter.InListFilter.newBuilder( - (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - inListFilterBuilder_.mergeFrom(value); - } - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - public com.google.analytics.data.v1beta.Filter.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder - getInListFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.InListFilter, - com.google.analytics.data.v1beta.Filter.InListFilter.Builder, - com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1beta.Filter.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.InListFilter, - com.google.analytics.data.v1beta.Filter.InListFilter.Builder, - com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder>( - (com.google.analytics.data.v1beta.Filter.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.NumericFilter, - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder, - com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - public Builder setNumericFilter(com.google.analytics.data.v1beta.Filter.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - public Builder mergeNumericFilter(com.google.analytics.data.v1beta.Filter.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ - != com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1beta.Filter.NumericFilter.newBuilder( - (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - numericFilterBuilder_.mergeFrom(value); - } - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - public com.google.analytics.data.v1beta.Filter.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder - getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.NumericFilter, - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder, - com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1beta.Filter.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.NumericFilter, - com.google.analytics.data.v1beta.Filter.NumericFilter.Builder, - com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder>( - (com.google.analytics.data.v1beta.Filter.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.BetweenFilter, - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder, - com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 6) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1beta.Filter.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - public Builder mergeBetweenFilter(com.google.analytics.data.v1beta.Filter.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 6 - && oneFilter_ - != com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1beta.Filter.BetweenFilter.newBuilder( - (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 6) { - betweenFilterBuilder_.mergeFrom(value); - } - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - public com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder - getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 6) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.BetweenFilter, - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder, - com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 6)) { - oneFilter_ = com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter.BetweenFilter, - com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder, - com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 6; - onChanged(); - ; - return betweenFilterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Filter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Filter) - private static final com.google.analytics.data.v1beta.Filter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Filter(); - } - - public static com.google.analytics.data.v1beta.Filter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Filter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpression.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpression.java deleted file mode 100644 index 2f6047b4..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpression.java +++ /dev/null @@ -1,1786 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * To express dimension or metric filters.
- * The fields in the same FilterExpression need to be either all dimensions or
- * all metrics.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.FilterExpression} - */ -public final class FilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.FilterExpression) - FilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use FilterExpression.newBuilder() to construct. - private FilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FilterExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FilterExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FilterExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.FilterExpressionList.Builder subBuilder = null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1beta.FilterExpressionList) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1beta.FilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1beta.FilterExpressionList.Builder subBuilder = null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1beta.FilterExpressionList) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1beta.FilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1beta.FilterExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1beta.FilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1beta.Filter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = ((com.google.analytics.data.v1beta.Filter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1beta.Filter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1beta.Filter) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 4; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.FilterExpression.class, - com.google.analytics.data.v1beta.FilterExpression.Builder.class); - } - - private int exprCase_ = 0; - private java.lang.Object expr_; - - public enum ExprCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - OR_GROUP(2), - NOT_EXPRESSION(3), - FILTER(4), - EXPR_NOT_SET(0); - private final int value; - - private ExprCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: - return AND_GROUP; - case 2: - return OR_GROUP; - case 3: - return NOT_EXPRESSION; - case 4: - return FILTER; - case 0: - return EXPR_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ExprCase getExprCase() { - return ExprCase.forNumber(exprCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1beta.FilterExpression) expr_; - } - return com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1beta.FilterExpression) expr_; - } - return com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } - - public static final int FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter getFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter) expr_; - } - return com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterOrBuilder getFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter) expr_; - } - return com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (com.google.analytics.data.v1beta.FilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1beta.FilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1beta.FilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1beta.Filter) expr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.analytics.data.v1beta.FilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1beta.FilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1beta.FilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1beta.Filter) expr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.FilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.FilterExpression other = - (com.google.analytics.data.v1beta.FilterExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getAndGroup().equals(other.getAndGroup())) return false; - break; - case 2: - if (!getOrGroup().equals(other.getOrGroup())) return false; - break; - case 3: - if (!getNotExpression().equals(other.getNotExpression())) return false; - break; - case 4: - if (!getFilter().equals(other.getFilter())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (exprCase_) { - case 1: - hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAndGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getOrGroup().hashCode(); - break; - case 3: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 4: - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.FilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.FilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * To express dimension or metric filters.
-   * The fields in the same FilterExpression need to be either all dimensions or
-   * all metrics.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.FilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.FilterExpression) - com.google.analytics.data.v1beta.FilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.FilterExpression.class, - com.google.analytics.data.v1beta.FilterExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.FilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression build() { - com.google.analytics.data.v1beta.FilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression buildPartial() { - com.google.analytics.data.v1beta.FilterExpression result = - new com.google.analytics.data.v1beta.FilterExpression(this); - if (exprCase_ == 1) { - if (andGroupBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = andGroupBuilder_.build(); - } - } - if (exprCase_ == 2) { - if (orGroupBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = orGroupBuilder_.build(); - } - } - if (exprCase_ == 3) { - if (notExpressionBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = notExpressionBuilder_.build(); - } - } - if (exprCase_ == 4) { - if (filterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = filterBuilder_.build(); - } - } - result.exprCase_ = exprCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.FilterExpression) { - return mergeFrom((com.google.analytics.data.v1beta.FilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.FilterExpression other) { - if (other == com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance()) - return this; - switch (other.getExprCase()) { - case AND_GROUP: - { - mergeAndGroup(other.getAndGroup()); - break; - } - case OR_GROUP: - { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: - { - mergeNotExpression(other.getNotExpression()); - break; - } - case FILTER: - { - mergeFilter(other.getFilter()); - break; - } - case EXPR_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.FilterExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.FilterExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int exprCase_ = 0; - private java.lang.Object expr_; - - public ExprCase getExprCase() { - return ExprCase.forNumber(exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpressionList, - com.google.analytics.data.v1beta.FilterExpressionList.Builder, - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.data.v1beta.FilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.data.v1beta.FilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.data.v1beta.FilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1beta.FilterExpressionList.newBuilder( - (com.google.analytics.data.v1beta.FilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - public Builder clearAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - andGroupBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - public com.google.analytics.data.v1beta.FilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpressionList, - com.google.analytics.data.v1beta.FilterExpressionList.Builder, - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpressionList, - com.google.analytics.data.v1beta.FilterExpressionList.Builder, - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder>( - (com.google.analytics.data.v1beta.FilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpressionList, - com.google.analytics.data.v1beta.FilterExpressionList.Builder, - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.data.v1beta.FilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1beta.FilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.data.v1beta.FilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1beta.FilterExpressionList.newBuilder( - (com.google.analytics.data.v1beta.FilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - public Builder clearOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - orGroupBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - public com.google.analytics.data.v1beta.FilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1beta.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpressionList, - com.google.analytics.data.v1beta.FilterExpressionList.Builder, - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpressionList, - com.google.analytics.data.v1beta.FilterExpressionList.Builder, - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder>( - (com.google.analytics.data.v1beta.FilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1beta.FilterExpression) expr_; - } - return com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.data.v1beta.FilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.data.v1beta.FilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ != com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder( - (com.google.analytics.data.v1beta.FilterExpression) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1beta.FilterExpression) expr_; - } - return com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - (com.google.analytics.data.v1beta.FilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter, - com.google.analytics.data.v1beta.Filter.Builder, - com.google.analytics.data.v1beta.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Filter getFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter) expr_; - } - return com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return filterBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - public Builder setFilter(com.google.analytics.data.v1beta.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - public Builder setFilter(com.google.analytics.data.v1beta.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - public Builder mergeFilter(com.google.analytics.data.v1beta.Filter value) { - if (filterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ != com.google.analytics.data.v1beta.Filter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1beta.Filter.newBuilder( - (com.google.analytics.data.v1beta.Filter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - filterBuilder_.mergeFrom(value); - } - filterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - filterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - public com.google.analytics.data.v1beta.Filter.Builder getFilterBuilder() { - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterOrBuilder getFilterOrBuilder() { - if ((exprCase_ == 4) && (filterBuilder_ != null)) { - return filterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1beta.Filter) expr_; - } - return com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter, - com.google.analytics.data.v1beta.Filter.Builder, - com.google.analytics.data.v1beta.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1beta.Filter.getDefaultInstance(); - } - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.Filter, - com.google.analytics.data.v1beta.Filter.Builder, - com.google.analytics.data.v1beta.FilterOrBuilder>( - (com.google.analytics.data.v1beta.Filter) expr_, getParentForChildren(), isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - ; - return filterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.FilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.FilterExpression) - private static final com.google.analytics.data.v1beta.FilterExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.FilterExpression(); - } - - public static com.google.analytics.data.v1beta.FilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpression(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionList.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionList.java deleted file mode 100644 index b98c33ca..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionList.java +++ /dev/null @@ -1,962 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * A list of filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.FilterExpressionList} - */ -public final class FilterExpressionList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.FilterExpressionList) - FilterExpressionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use FilterExpressionList.newBuilder() to construct. - private FilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FilterExpressionList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FilterExpressionList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - expressions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - expressions_.add( - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - expressions_ = java.util.Collections.unmodifiableList(expressions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.FilterExpressionList.class, - com.google.analytics.data.v1beta.FilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - private java.util.List expressions_; - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - return expressions_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < expressions_.size(); i++) { - output.writeMessage(1, expressions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < expressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.FilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.FilterExpressionList other = - (com.google.analytics.data.v1beta.FilterExpressionList) obj; - - if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.FilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.FilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.FilterExpressionList) - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.FilterExpressionList.class, - com.google.analytics.data.v1beta.FilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.FilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - expressionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_FilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList build() { - com.google.analytics.data.v1beta.FilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList buildPartial() { - com.google.analytics.data.v1beta.FilterExpressionList result = - new com.google.analytics.data.v1beta.FilterExpressionList(this); - int from_bitField0_ = bitField0_; - if (expressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - expressions_ = java.util.Collections.unmodifiableList(expressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.expressions_ = expressions_; - } else { - result.expressions_ = expressionsBuilder_.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.analytics.data.v1beta.FilterExpressionList) { - return mergeFrom((com.google.analytics.data.v1beta.FilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.FilterExpressionList other) { - if (other == com.google.analytics.data.v1beta.FilterExpressionList.getDefaultInstance()) - return this; - if (expressionsBuilder_ == null) { - if (!other.expressions_.isEmpty()) { - if (expressions_.isEmpty()) { - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExpressionsIsMutable(); - expressions_.addAll(other.expressions_); - } - onChanged(); - } - } else { - if (!other.expressions_.isEmpty()) { - if (expressionsBuilder_.isEmpty()) { - expressionsBuilder_.dispose(); - expressionsBuilder_ = null; - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - expressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExpressionsFieldBuilder() - : null; - } else { - expressionsBuilder_.addAllMessages(other.expressions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.FilterExpressionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.FilterExpressionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List expressions_ = - java.util.Collections.emptyList(); - - private void ensureExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - expressions_ = - new java.util.ArrayList( - expressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public java.util.List getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1beta.FilterExpression getExpressions(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1beta.FilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.data.v1beta.FilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1beta.FilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder addAllExpressions( - java.lang.Iterable values) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); - onChanged(); - } else { - expressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public java.util.List - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - expressions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - expressions_ = null; - } - return expressionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.FilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.FilterExpressionList) - private static final com.google.analytics.data.v1beta.FilterExpressionList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.FilterExpressionList(); - } - - public static com.google.analytics.data.v1beta.FilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpressionList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionListOrBuilder.java deleted file mode 100644 index 6a5721b6..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionListOrBuilder.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface FilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.FilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - java.util.List getExpressionsList(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - com.google.analytics.data.v1beta.FilterExpression getExpressions(int index); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getExpressionsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionOrBuilder.java deleted file mode 100644 index 336de25a..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionOrBuilder.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface FilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.FilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1beta.FilterExpressionList getAndGroup(); - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1beta.FilterExpressionList getOrGroup(); - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1beta.FilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.data.v1beta.FilterExpression getNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression not_expression = 3; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return The filter. - */ - com.google.analytics.data.v1beta.Filter getFilter(); - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - com.google.analytics.data.v1beta.FilterOrBuilder getFilterOrBuilder(); - - public com.google.analytics.data.v1beta.FilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java deleted file mode 100644 index 0062312f..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - * - * - *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
-   * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString getFieldNameBytes(); - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1beta.Filter.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - */ - com.google.analytics.data.v1beta.Filter.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1beta.Filter.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - */ - com.google.analytics.data.v1beta.Filter.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1beta.Filter.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - */ - com.google.analytics.data.v1beta.Filter.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1beta.Filter.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - */ - com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - public com.google.analytics.data.v1beta.Filter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java deleted file mode 100644 index ba989de0..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java +++ /dev/null @@ -1,706 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Request for a property's dimension and metric metadata.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.GetMetadataRequest} - */ -public final class GetMetadataRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.GetMetadataRequest) - GetMetadataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetMetadataRequest.newBuilder() to construct. - private GetMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetMetadataRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetMetadataRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetMetadataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_GetMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.GetMetadataRequest.class, - com.google.analytics.data.v1beta.GetMetadataRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the metadata to retrieve. This name field is
-   * specified in the URL path and not URL parameters. Property is a numeric
-   * Google Analytics GA4 Property identifier. To learn more, see [where to find
-   * your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234/metadata
-   * Set the Property ID to 0 for dimensions and metrics common to all
-   * properties. In this special mode, this method will not return custom
-   * dimensions and metrics.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the metadata to retrieve. This name field is
-   * specified in the URL path and not URL parameters. Property is a numeric
-   * Google Analytics GA4 Property identifier. To learn more, see [where to find
-   * your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234/metadata
-   * Set the Property ID to 0 for dimensions and metrics common to all
-   * properties. In this special mode, this method will not return custom
-   * dimensions and metrics.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.GetMetadataRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.GetMetadataRequest other = - (com.google.analytics.data.v1beta.GetMetadataRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.GetMetadataRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 a property's dimension and metric metadata.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.GetMetadataRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.GetMetadataRequest) - com.google.analytics.data.v1beta.GetMetadataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_GetMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.GetMetadataRequest.class, - com.google.analytics.data.v1beta.GetMetadataRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.GetMetadataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.GetMetadataRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.GetMetadataRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.GetMetadataRequest build() { - com.google.analytics.data.v1beta.GetMetadataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.GetMetadataRequest buildPartial() { - com.google.analytics.data.v1beta.GetMetadataRequest result = - new com.google.analytics.data.v1beta.GetMetadataRequest(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.analytics.data.v1beta.GetMetadataRequest) { - return mergeFrom((com.google.analytics.data.v1beta.GetMetadataRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.GetMetadataRequest other) { - if (other == com.google.analytics.data.v1beta.GetMetadataRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.GetMetadataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.GetMetadataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the metadata to retrieve. This name field is
-     * specified in the URL path and not URL parameters. Property is a numeric
-     * Google Analytics GA4 Property identifier. To learn more, see [where to find
-     * your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234/metadata
-     * Set the Property ID to 0 for dimensions and metrics common to all
-     * properties. In this special mode, this method will not return custom
-     * dimensions and metrics.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the metadata to retrieve. This name field is
-     * specified in the URL path and not URL parameters. Property is a numeric
-     * Google Analytics GA4 Property identifier. To learn more, see [where to find
-     * your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234/metadata
-     * Set the Property ID to 0 for dimensions and metrics common to all
-     * properties. In this special mode, this method will not return custom
-     * dimensions and metrics.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the metadata to retrieve. This name field is
-     * specified in the URL path and not URL parameters. Property is a numeric
-     * Google Analytics GA4 Property identifier. To learn more, see [where to find
-     * your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234/metadata
-     * Set the Property ID to 0 for dimensions and metrics common to all
-     * properties. In this special mode, this method will not return custom
-     * dimensions and metrics.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the metadata to retrieve. This name field is
-     * specified in the URL path and not URL parameters. Property is a numeric
-     * Google Analytics GA4 Property identifier. To learn more, see [where to find
-     * your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234/metadata
-     * Set the Property ID to 0 for dimensions and metrics common to all
-     * properties. In this special mode, this method will not return custom
-     * dimensions and metrics.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the metadata to retrieve. This name field is
-     * specified in the URL path and not URL parameters. Property is a numeric
-     * Google Analytics GA4 Property identifier. To learn more, see [where to find
-     * your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234/metadata
-     * Set the Property ID to 0 for dimensions and metrics common to all
-     * properties. In this special mode, this method will not return custom
-     * dimensions and metrics.
-     * 
- * - * - * 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.analytics.data.v1beta.GetMetadataRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.GetMetadataRequest) - private static final com.google.analytics.data.v1beta.GetMetadataRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.GetMetadataRequest(); - } - - public static com.google.analytics.data.v1beta.GetMetadataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMetadataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMetadataRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.GetMetadataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java deleted file mode 100644 index 38f0c4f1..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface GetMetadataRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.GetMetadataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the metadata to retrieve. This name field is
-   * specified in the URL path and not URL parameters. Property is a numeric
-   * Google Analytics GA4 Property identifier. To learn more, see [where to find
-   * your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234/metadata
-   * Set the Property ID to 0 for dimensions and metrics common to all
-   * properties. In this special mode, this method will not return custom
-   * dimensions and metrics.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the metadata to retrieve. This name field is
-   * specified in the URL path and not URL parameters. Property is a numeric
-   * Google Analytics GA4 Property identifier. To learn more, see [where to find
-   * your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234/metadata
-   * Set the Property ID to 0 for dimensions and metrics common to all
-   * properties. In this special mode, this method will not return custom
-   * dimensions and metrics.
-   * 
- * - * - * 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-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metadata.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metadata.java deleted file mode 100644 index 9aa44745..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metadata.java +++ /dev/null @@ -1,1628 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The dimensions and metrics currently accepted in reporting methods.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Metadata} - */ -public final class Metadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Metadata) - MetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Metadata() { - name_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Metadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionMetadata.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metrics_.add( - input.readMessage( - com.google.analytics.data.v1beta.MetricMetadata.parser(), extensionRegistry)); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Metadata.class, - com.google.analytics.data.v1beta.Metadata.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Resource name of this metadata.
-   * 
- * - * string name = 3; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Resource name of this metadata.
-   * 
- * - * string name = 3; - * - * @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 DIMENSIONS_FIELD_NUMBER = 1; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadata getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionMetadataOrBuilder getDimensionsOrBuilder( - int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 2; - private java.util.List metrics_; - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(1, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(2, metrics_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metrics_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Metadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Metadata other = - (com.google.analytics.data.v1beta.Metadata) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Metadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Metadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 dimensions and metrics currently accepted in reporting methods.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Metadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Metadata) - com.google.analytics.data.v1beta.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Metadata.class, - com.google.analytics.data.v1beta.Metadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionsBuilder_.clear(); - } - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_Metadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metadata getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Metadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metadata build() { - com.google.analytics.data.v1beta.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metadata buildPartial() { - com.google.analytics.data.v1beta.Metadata result = - new com.google.analytics.data.v1beta.Metadata(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.Metadata) { - return mergeFrom((com.google.analytics.data.v1beta.Metadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Metadata other) { - if (other == com.google.analytics.data.v1beta.Metadata.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionsFieldBuilder() - : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Metadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Resource name of this metadata.
-     * 
- * - * string name = 3; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Resource name of this metadata.
-     * 
- * - * string name = 3; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Resource name of this metadata.
-     * 
- * - * string name = 3; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name of this metadata.
-     * 
- * - * string name = 3; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name of this metadata.
-     * 
- * - * string name = 3; - * - * @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.util.List dimensions_ = - java.util.Collections.emptyList(); - - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList( - dimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionMetadata, - com.google.analytics.data.v1beta.DimensionMetadata.Builder, - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadata getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1beta.DimensionMetadata value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1beta.DimensionMetadata.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions(com.google.analytics.data.v1beta.DimensionMetadata value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1beta.DimensionMetadata value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions( - com.google.analytics.data.v1beta.DimensionMetadata.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1beta.DimensionMetadata.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadata.Builder getDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadataOrBuilder getDimensionsOrBuilder( - int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadata.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1beta.DimensionMetadata.Builder addDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.DimensionMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionMetadata, - com.google.analytics.data.v1beta.DimensionMetadata.Builder, - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionMetadata, - com.google.analytics.data.v1beta.DimensionMetadata.Builder, - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder>( - dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = - new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricMetadata, - com.google.analytics.data.v1beta.MetricMetadata.Builder, - com.google.analytics.data.v1beta.MetricMetadataOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1beta.MetricMetadata getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1beta.MetricMetadata value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1beta.MetricMetadata.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.MetricMetadata value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1beta.MetricMetadata value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder addMetrics( - com.google.analytics.data.v1beta.MetricMetadata.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1beta.MetricMetadata.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1beta.MetricMetadata.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricsOrBuilder(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1beta.MetricMetadata.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1beta.MetricMetadata.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricMetadata, - com.google.analytics.data.v1beta.MetricMetadata.Builder, - com.google.analytics.data.v1beta.MetricMetadataOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricMetadata, - com.google.analytics.data.v1beta.MetricMetadata.Builder, - com.google.analytics.data.v1beta.MetricMetadataOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Metadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Metadata) - private static final com.google.analytics.data.v1beta.Metadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Metadata(); - } - - public static com.google.analytics.data.v1beta.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java deleted file mode 100644 index 969799f2..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta; - -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 MetadataName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}/metadata"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected MetadataName() { - property = null; - } - - private MetadataName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static MetadataName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static MetadataName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, "MetadataName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - 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 (MetadataName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - MetadataName that = ((MetadataName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}/metadata. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(MetadataName metadataName) { - this.property = metadataName.property; - } - - public MetadataName build() { - return new MetadataName(this); - } - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataOrBuilder.java deleted file mode 100644 index ed46aad8..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataOrBuilder.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/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface MetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name of this metadata.
-   * 
- * - * string name = 3; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name of this metadata.
-   * 
- * - * string name = 3; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - com.google.analytics.data.v1beta.DimensionMetadata getDimensions(int index); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - com.google.analytics.data.v1beta.DimensionMetadataOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - com.google.analytics.data.v1beta.MetricMetadata getMetrics(int index); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metric.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metric.java deleted file mode 100644 index b7f45f6d..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metric.java +++ /dev/null @@ -1,984 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The quantitative measurements of a report. For example, the metric
- * `eventCount` is the total number of events. Requests are allowed up to 10
- * metrics.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Metric} - */ -public final class Metric extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Metric) - MetricOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metric.newBuilder() to construct. - private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Metric() { - name_ = ""; - expression_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Metric(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Metric( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - expression_ = s; - break; - } - case 24: - { - invisible_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Metric.class, - com.google.analytics.data.v1beta.Metric.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of the metric. See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of metric names.
-   * If `expression` is specified, `name` can be any string that you would like
-   * within the allowed character set. For example if `expression` is
-   * `screenPageViews/sessions`, you could call that metric's name =
-   * `viewsPerSession`. Metric names that you choose must match the regular
-   * expression `^[a-zA-Z0-9_]$`.
-   * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-   * `expression`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the metric. See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of metric names.
-   * If `expression` is specified, `name` can be any string that you would like
-   * within the allowed character set. For example if `expression` is
-   * `screenPageViews/sessions`, you could call that metric's name =
-   * `viewsPerSession`. Metric names that you choose must match the regular
-   * expression `^[a-zA-Z0-9_]$`.
-   * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-   * `expression`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPRESSION_FIELD_NUMBER = 2; - private volatile java.lang.Object expression_; - /** - * - * - *
-   * A mathematical expression for derived metrics. For example, the metric
-   * Event count per user is `eventCount/totalUsers`.
-   * 
- * - * string expression = 2; - * - * @return The expression. - */ - @java.lang.Override - public java.lang.String getExpression() { - java.lang.Object ref = expression_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expression_ = s; - return s; - } - } - /** - * - * - *
-   * A mathematical expression for derived metrics. For example, the metric
-   * Event count per user is `eventCount/totalUsers`.
-   * 
- * - * string expression = 2; - * - * @return The bytes for expression. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExpressionBytes() { - java.lang.Object ref = expression_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INVISIBLE_FIELD_NUMBER = 3; - private boolean invisible_; - /** - * - * - *
-   * Indicates if a metric is invisible in the report response. If a metric is
-   * invisible, the metric will not produce a column in the response, but can be
-   * used in `metricFilter`, `orderBys`, or a metric `expression`.
-   * 
- * - * bool invisible = 3; - * - * @return The invisible. - */ - @java.lang.Override - public boolean getInvisible() { - return invisible_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expression_); - } - if (invisible_ != false) { - output.writeBool(3, invisible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expression_); - } - if (invisible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, invisible_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Metric)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Metric other = (com.google.analytics.data.v1beta.Metric) obj; - - if (!getName().equals(other.getName())) return false; - if (!getExpression().equals(other.getExpression())) return false; - if (getInvisible() != other.getInvisible()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getExpression().hashCode(); - hash = (37 * hash) + INVISIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvisible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Metric parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metric parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Metric parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Metric parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Metric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The quantitative measurements of a report. For example, the metric
-   * `eventCount` is the total number of events. Requests are allowed up to 10
-   * metrics.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Metric} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Metric) - com.google.analytics.data.v1beta.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Metric.class, - com.google.analytics.data.v1beta.Metric.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Metric.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - expression_ = ""; - - invisible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Metric_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metric getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metric build() { - com.google.analytics.data.v1beta.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metric buildPartial() { - com.google.analytics.data.v1beta.Metric result = - new com.google.analytics.data.v1beta.Metric(this); - result.name_ = name_; - result.expression_ = expression_; - result.invisible_ = invisible_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.Metric) { - return mergeFrom((com.google.analytics.data.v1beta.Metric) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Metric other) { - if (other == com.google.analytics.data.v1beta.Metric.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getExpression().isEmpty()) { - expression_ = other.expression_; - onChanged(); - } - if (other.getInvisible() != false) { - setInvisible(other.getInvisible()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Metric parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Metric) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of the metric. See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of metric names.
-     * If `expression` is specified, `name` can be any string that you would like
-     * within the allowed character set. For example if `expression` is
-     * `screenPageViews/sessions`, you could call that metric's name =
-     * `viewsPerSession`. Metric names that you choose must match the regular
-     * expression `^[a-zA-Z0-9_]$`.
-     * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-     * `expression`.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the metric. See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of metric names.
-     * If `expression` is specified, `name` can be any string that you would like
-     * within the allowed character set. For example if `expression` is
-     * `screenPageViews/sessions`, you could call that metric's name =
-     * `viewsPerSession`. Metric names that you choose must match the regular
-     * expression `^[a-zA-Z0-9_]$`.
-     * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-     * `expression`.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the metric. See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of metric names.
-     * If `expression` is specified, `name` can be any string that you would like
-     * within the allowed character set. For example if `expression` is
-     * `screenPageViews/sessions`, you could call that metric's name =
-     * `viewsPerSession`. Metric names that you choose must match the regular
-     * expression `^[a-zA-Z0-9_]$`.
-     * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-     * `expression`.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the metric. See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of metric names.
-     * If `expression` is specified, `name` can be any string that you would like
-     * within the allowed character set. For example if `expression` is
-     * `screenPageViews/sessions`, you could call that metric's name =
-     * `viewsPerSession`. Metric names that you choose must match the regular
-     * expression `^[a-zA-Z0-9_]$`.
-     * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-     * `expression`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the metric. See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of metric names.
-     * If `expression` is specified, `name` can be any string that you would like
-     * within the allowed character set. For example if `expression` is
-     * `screenPageViews/sessions`, you could call that metric's name =
-     * `viewsPerSession`. Metric names that you choose must match the regular
-     * expression `^[a-zA-Z0-9_]$`.
-     * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-     * `expression`.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object expression_ = ""; - /** - * - * - *
-     * A mathematical expression for derived metrics. For example, the metric
-     * Event count per user is `eventCount/totalUsers`.
-     * 
- * - * string expression = 2; - * - * @return The expression. - */ - public java.lang.String getExpression() { - java.lang.Object ref = expression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expression_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A mathematical expression for derived metrics. For example, the metric
-     * Event count per user is `eventCount/totalUsers`.
-     * 
- * - * string expression = 2; - * - * @return The bytes for expression. - */ - public com.google.protobuf.ByteString getExpressionBytes() { - java.lang.Object ref = expression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A mathematical expression for derived metrics. For example, the metric
-     * Event count per user is `eventCount/totalUsers`.
-     * 
- * - * string expression = 2; - * - * @param value The expression to set. - * @return This builder for chaining. - */ - public Builder setExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expression_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A mathematical expression for derived metrics. For example, the metric
-     * Event count per user is `eventCount/totalUsers`.
-     * 
- * - * string expression = 2; - * - * @return This builder for chaining. - */ - public Builder clearExpression() { - - expression_ = getDefaultInstance().getExpression(); - onChanged(); - return this; - } - /** - * - * - *
-     * A mathematical expression for derived metrics. For example, the metric
-     * Event count per user is `eventCount/totalUsers`.
-     * 
- * - * string expression = 2; - * - * @param value The bytes for expression to set. - * @return This builder for chaining. - */ - public Builder setExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expression_ = value; - onChanged(); - return this; - } - - private boolean invisible_; - /** - * - * - *
-     * Indicates if a metric is invisible in the report response. If a metric is
-     * invisible, the metric will not produce a column in the response, but can be
-     * used in `metricFilter`, `orderBys`, or a metric `expression`.
-     * 
- * - * bool invisible = 3; - * - * @return The invisible. - */ - @java.lang.Override - public boolean getInvisible() { - return invisible_; - } - /** - * - * - *
-     * Indicates if a metric is invisible in the report response. If a metric is
-     * invisible, the metric will not produce a column in the response, but can be
-     * used in `metricFilter`, `orderBys`, or a metric `expression`.
-     * 
- * - * bool invisible = 3; - * - * @param value The invisible to set. - * @return This builder for chaining. - */ - public Builder setInvisible(boolean value) { - - invisible_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates if a metric is invisible in the report response. If a metric is
-     * invisible, the metric will not produce a column in the response, but can be
-     * used in `metricFilter`, `orderBys`, or a metric `expression`.
-     * 
- * - * bool invisible = 3; - * - * @return This builder for chaining. - */ - public Builder clearInvisible() { - - invisible_ = 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.analytics.data.v1beta.Metric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Metric) - private static final com.google.analytics.data.v1beta.Metric DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Metric(); - } - - public static com.google.analytics.data.v1beta.Metric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metric(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Metric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricAggregation.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricAggregation.java deleted file mode 100644 index 2900a72c..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricAggregation.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Represents aggregation of metrics.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.MetricAggregation} - */ -public enum MetricAggregation implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified operator.
-   * 
- * - * METRIC_AGGREGATION_UNSPECIFIED = 0; - */ - METRIC_AGGREGATION_UNSPECIFIED(0), - /** - * - * - *
-   * SUM operator.
-   * 
- * - * TOTAL = 1; - */ - TOTAL(1), - /** - * - * - *
-   * Minimum operator.
-   * 
- * - * MINIMUM = 5; - */ - MINIMUM(5), - /** - * - * - *
-   * Maximum operator.
-   * 
- * - * MAXIMUM = 6; - */ - MAXIMUM(6), - /** - * - * - *
-   * Count operator.
-   * 
- * - * COUNT = 4; - */ - COUNT(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified operator.
-   * 
- * - * METRIC_AGGREGATION_UNSPECIFIED = 0; - */ - public static final int METRIC_AGGREGATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * SUM operator.
-   * 
- * - * TOTAL = 1; - */ - public static final int TOTAL_VALUE = 1; - /** - * - * - *
-   * Minimum operator.
-   * 
- * - * MINIMUM = 5; - */ - public static final int MINIMUM_VALUE = 5; - /** - * - * - *
-   * Maximum operator.
-   * 
- * - * MAXIMUM = 6; - */ - public static final int MAXIMUM_VALUE = 6; - /** - * - * - *
-   * Count operator.
-   * 
- * - * COUNT = 4; - */ - public static final int COUNT_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 MetricAggregation 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 MetricAggregation forNumber(int value) { - switch (value) { - case 0: - return METRIC_AGGREGATION_UNSPECIFIED; - case 1: - return TOTAL; - case 5: - return MINIMUM; - case 6: - return MAXIMUM; - case 4: - return COUNT; - 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 MetricAggregation findValueByNumber(int number) { - return MetricAggregation.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.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(0); - } - - private static final MetricAggregation[] VALUES = values(); - - public static MetricAggregation 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 MetricAggregation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.MetricAggregation) -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java deleted file mode 100644 index 730006c6..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java +++ /dev/null @@ -1,972 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The compatibility for a single metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricCompatibility} - */ -public final class MetricCompatibility extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.MetricCompatibility) - MetricCompatibilityOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricCompatibility.newBuilder() to construct. - private MetricCompatibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricCompatibility() { - compatibility_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricCompatibility(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MetricCompatibility( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.MetricMetadata.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = metricMetadata_.toBuilder(); - } - metricMetadata_ = - input.readMessage( - com.google.analytics.data.v1beta.MetricMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricMetadata_); - metricMetadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: - { - int rawValue = input.readEnum(); - bitField0_ |= 0x00000002; - compatibility_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricCompatibility_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricCompatibility.class, - com.google.analytics.data.v1beta.MetricCompatibility.Builder.class); - } - - private int bitField0_; - public static final int METRIC_METADATA_FIELD_NUMBER = 1; - private com.google.analytics.data.v1beta.MetricMetadata metricMetadata_; - /** - * - * - *
-   * The metric metadata contains the API name for this compatibility
-   * information. The metric metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * - * @return Whether the metricMetadata field is set. - */ - @java.lang.Override - public boolean hasMetricMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The metric metadata contains the API name for this compatibility
-   * information. The metric metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * - * @return The metricMetadata. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata getMetricMetadata() { - return metricMetadata_ == null - ? com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance() - : metricMetadata_; - } - /** - * - * - *
-   * The metric metadata contains the API name for this compatibility
-   * information. The metric metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadataOrBuilder() { - return metricMetadata_ == null - ? com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance() - : metricMetadata_; - } - - public static final int COMPATIBILITY_FIELD_NUMBER = 2; - private int compatibility_; - /** - * - * - *
-   * The compatibility of this metric. If the compatibility is COMPATIBLE,
-   * this metric can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return Whether the compatibility field is set. - */ - @java.lang.Override - public boolean hasCompatibility() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The compatibility of this metric. If the compatibility is COMPATIBLE,
-   * this metric can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The enum numeric value on the wire for compatibility. - */ - @java.lang.Override - public int getCompatibilityValue() { - return compatibility_; - } - /** - * - * - *
-   * The compatibility of this metric. If the compatibility is COMPATIBLE,
-   * this metric can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The compatibility. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Compatibility getCompatibility() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Compatibility result = - com.google.analytics.data.v1beta.Compatibility.valueOf(compatibility_); - return result == null ? com.google.analytics.data.v1beta.Compatibility.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getMetricMetadata()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, compatibility_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetricMetadata()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compatibility_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.MetricCompatibility)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.MetricCompatibility other = - (com.google.analytics.data.v1beta.MetricCompatibility) obj; - - if (hasMetricMetadata() != other.hasMetricMetadata()) return false; - if (hasMetricMetadata()) { - if (!getMetricMetadata().equals(other.getMetricMetadata())) return false; - } - if (hasCompatibility() != other.hasCompatibility()) return false; - if (hasCompatibility()) { - if (compatibility_ != other.compatibility_) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetricMetadata()) { - hash = (37 * hash) + METRIC_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetricMetadata().hashCode(); - } - if (hasCompatibility()) { - hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; - hash = (53 * hash) + compatibility_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.MetricCompatibility prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 compatibility for a single metric.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricCompatibility} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.MetricCompatibility) - com.google.analytics.data.v1beta.MetricCompatibilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricCompatibility_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricCompatibility.class, - com.google.analytics.data.v1beta.MetricCompatibility.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.MetricCompatibility.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMetricMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (metricMetadataBuilder_ == null) { - metricMetadata_ = null; - } else { - metricMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - compatibility_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricCompatibility getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.MetricCompatibility.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricCompatibility build() { - com.google.analytics.data.v1beta.MetricCompatibility result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricCompatibility buildPartial() { - com.google.analytics.data.v1beta.MetricCompatibility result = - new com.google.analytics.data.v1beta.MetricCompatibility(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (metricMetadataBuilder_ == null) { - result.metricMetadata_ = metricMetadata_; - } else { - result.metricMetadata_ = metricMetadataBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.compatibility_ = compatibility_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.MetricCompatibility) { - return mergeFrom((com.google.analytics.data.v1beta.MetricCompatibility) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.MetricCompatibility other) { - if (other == com.google.analytics.data.v1beta.MetricCompatibility.getDefaultInstance()) - return this; - if (other.hasMetricMetadata()) { - mergeMetricMetadata(other.getMetricMetadata()); - } - if (other.hasCompatibility()) { - setCompatibility(other.getCompatibility()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.MetricCompatibility parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.MetricCompatibility) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1beta.MetricMetadata metricMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.MetricMetadata, - com.google.analytics.data.v1beta.MetricMetadata.Builder, - com.google.analytics.data.v1beta.MetricMetadataOrBuilder> - metricMetadataBuilder_; - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * - * @return Whether the metricMetadata field is set. - */ - public boolean hasMetricMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * - * @return The metricMetadata. - */ - public com.google.analytics.data.v1beta.MetricMetadata getMetricMetadata() { - if (metricMetadataBuilder_ == null) { - return metricMetadata_ == null - ? com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance() - : metricMetadata_; - } else { - return metricMetadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - public Builder setMetricMetadata(com.google.analytics.data.v1beta.MetricMetadata value) { - if (metricMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricMetadata_ = value; - onChanged(); - } else { - metricMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - public Builder setMetricMetadata( - com.google.analytics.data.v1beta.MetricMetadata.Builder builderForValue) { - if (metricMetadataBuilder_ == null) { - metricMetadata_ = builderForValue.build(); - onChanged(); - } else { - metricMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - public Builder mergeMetricMetadata(com.google.analytics.data.v1beta.MetricMetadata value) { - if (metricMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && metricMetadata_ != null - && metricMetadata_ - != com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance()) { - metricMetadata_ = - com.google.analytics.data.v1beta.MetricMetadata.newBuilder(metricMetadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metricMetadata_ = value; - } - onChanged(); - } else { - metricMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - public Builder clearMetricMetadata() { - if (metricMetadataBuilder_ == null) { - metricMetadata_ = null; - onChanged(); - } else { - metricMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - public com.google.analytics.data.v1beta.MetricMetadata.Builder getMetricMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetricMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadataOrBuilder() { - if (metricMetadataBuilder_ != null) { - return metricMetadataBuilder_.getMessageOrBuilder(); - } else { - return metricMetadata_ == null - ? com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance() - : metricMetadata_; - } - } - /** - * - * - *
-     * The metric metadata contains the API name for this compatibility
-     * information. The metric metadata also contains other helpful information
-     * like the UI name and description.
-     * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.MetricMetadata, - com.google.analytics.data.v1beta.MetricMetadata.Builder, - com.google.analytics.data.v1beta.MetricMetadataOrBuilder> - getMetricMetadataFieldBuilder() { - if (metricMetadataBuilder_ == null) { - metricMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.MetricMetadata, - com.google.analytics.data.v1beta.MetricMetadata.Builder, - com.google.analytics.data.v1beta.MetricMetadataOrBuilder>( - getMetricMetadata(), getParentForChildren(), isClean()); - metricMetadata_ = null; - } - return metricMetadataBuilder_; - } - - private int compatibility_ = 0; - /** - * - * - *
-     * The compatibility of this metric. If the compatibility is COMPATIBLE,
-     * this metric can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return Whether the compatibility field is set. - */ - @java.lang.Override - public boolean hasCompatibility() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The compatibility of this metric. If the compatibility is COMPATIBLE,
-     * this metric can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The enum numeric value on the wire for compatibility. - */ - @java.lang.Override - public int getCompatibilityValue() { - return compatibility_; - } - /** - * - * - *
-     * The compatibility of this metric. If the compatibility is COMPATIBLE,
-     * this metric can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @param value The enum numeric value on the wire for compatibility to set. - * @return This builder for chaining. - */ - public Builder setCompatibilityValue(int value) { - bitField0_ |= 0x00000002; - compatibility_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The compatibility of this metric. If the compatibility is COMPATIBLE,
-     * this metric can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The compatibility. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Compatibility getCompatibility() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.Compatibility result = - com.google.analytics.data.v1beta.Compatibility.valueOf(compatibility_); - return result == null ? com.google.analytics.data.v1beta.Compatibility.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The compatibility of this metric. If the compatibility is COMPATIBLE,
-     * this metric can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @param value The compatibility to set. - * @return This builder for chaining. - */ - public Builder setCompatibility(com.google.analytics.data.v1beta.Compatibility value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - compatibility_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The compatibility of this metric. If the compatibility is COMPATIBLE,
-     * this metric can be successfully added to the report.
-     * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return This builder for chaining. - */ - public Builder clearCompatibility() { - bitField0_ = (bitField0_ & ~0x00000002); - compatibility_ = 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.analytics.data.v1beta.MetricCompatibility) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.MetricCompatibility) - private static final com.google.analytics.data.v1beta.MetricCompatibility DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.MetricCompatibility(); - } - - public static com.google.analytics.data.v1beta.MetricCompatibility getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricCompatibility parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricCompatibility(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricCompatibility getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibilityOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibilityOrBuilder.java deleted file mode 100644 index 6c3ac155..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibilityOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface MetricCompatibilityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.MetricCompatibility) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The metric metadata contains the API name for this compatibility
-   * information. The metric metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * - * @return Whether the metricMetadata field is set. - */ - boolean hasMetricMetadata(); - /** - * - * - *
-   * The metric metadata contains the API name for this compatibility
-   * information. The metric metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * - * @return The metricMetadata. - */ - com.google.analytics.data.v1beta.MetricMetadata getMetricMetadata(); - /** - * - * - *
-   * The metric metadata contains the API name for this compatibility
-   * information. The metric metadata also contains other helpful information
-   * like the UI name and description.
-   * 
- * - * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadataOrBuilder(); - - /** - * - * - *
-   * The compatibility of this metric. If the compatibility is COMPATIBLE,
-   * this metric can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return Whether the compatibility field is set. - */ - boolean hasCompatibility(); - /** - * - * - *
-   * The compatibility of this metric. If the compatibility is COMPATIBLE,
-   * this metric can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The enum numeric value on the wire for compatibility. - */ - int getCompatibilityValue(); - /** - * - * - *
-   * The compatibility of this metric. If the compatibility is COMPATIBLE,
-   * this metric can be successfully added to the report.
-   * 
- * - * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * - * @return The compatibility. - */ - com.google.analytics.data.v1beta.Compatibility getCompatibility(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeader.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeader.java deleted file mode 100644 index dbc42080..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeader.java +++ /dev/null @@ -1,790 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Describes a metric column in the report. Visible metrics requested in a
- * report produce column entries within rows and MetricHeaders. However,
- * metrics used exclusively within filters or expressions do not produce columns
- * in a report; correspondingly, those metrics do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricHeader} - */ -public final class MetricHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.MetricHeader) - MetricHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricHeader.newBuilder() to construct. - private MetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricHeader() { - name_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricHeader(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MetricHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricHeader.class, - com.google.analytics.data.v1beta.MetricHeader.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The metric's name.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The metric's name.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * - * - *
-   * The metric's data type.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * The metric's data type.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricType result = - com.google.analytics.data.v1beta.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1beta.MetricType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.MetricHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.MetricHeader other = - (com.google.analytics.data.v1beta.MetricHeader) obj; - - if (!getName().equals(other.getName())) return false; - if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.MetricHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Describes a metric column in the report. Visible metrics requested in a
-   * report produce column entries within rows and MetricHeaders. However,
-   * metrics used exclusively within filters or expressions do not produce columns
-   * in a report; correspondingly, those metrics do not produce headers.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.MetricHeader) - com.google.analytics.data.v1beta.MetricHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricHeader.class, - com.google.analytics.data.v1beta.MetricHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.MetricHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader build() { - com.google.analytics.data.v1beta.MetricHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader buildPartial() { - com.google.analytics.data.v1beta.MetricHeader result = - new com.google.analytics.data.v1beta.MetricHeader(this); - result.name_ = name_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.MetricHeader) { - return mergeFrom((com.google.analytics.data.v1beta.MetricHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.MetricHeader other) { - if (other == com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.MetricHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MetricHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The metric's name.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The metric's name.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The metric's name.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's name.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's name.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricType result = - com.google.analytics.data.v1beta.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1beta.MetricType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.data.v1beta.MetricType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.MetricHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.MetricHeader) - private static final com.google.analytics.data.v1beta.MetricHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.MetricHeader(); - } - - public static com.google.analytics.data.v1beta.MetricHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeaderOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeaderOrBuilder.java deleted file mode 100644 index 4c4e6ad3..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeaderOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface MetricHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.MetricHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The metric's name.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The metric's name.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The metric's data type.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * The metric's data type.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 2; - * - * @return The type. - */ - com.google.analytics.data.v1beta.MetricType getType(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java deleted file mode 100644 index 0e1d42d9..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java +++ /dev/null @@ -1,2636 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Explains a metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricMetadata} - */ -public final class MetricMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.MetricMetadata) - MetricMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricMetadata.newBuilder() to construct. - private MetricMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricMetadata() { - apiName_ = ""; - uiName_ = ""; - description_ = ""; - deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - type_ = 0; - expression_ = ""; - blockedReasons_ = java.util.Collections.emptyList(); - category_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MetricMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - apiName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - uiName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deprecatedApiNames_.add(s); - break; - } - case 40: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - expression_ = s; - break; - } - case 56: - { - customDefinition_ = input.readBool(); - break; - } - case 64: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blockedReasons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blockedReasons_.add(rawValue); - break; - } - case 66: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blockedReasons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blockedReasons_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - category_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - blockedReasons_ = java.util.Collections.unmodifiableList(blockedReasons_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricMetadata.class, - com.google.analytics.data.v1beta.MetricMetadata.Builder.class); - } - - /** - * - * - *
-   * Justifications for why this metric is blocked.
-   * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.MetricMetadata.BlockedReason} - */ - public enum BlockedReason implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Will never be specified in API response.
-     * 
- * - * BLOCKED_REASON_UNSPECIFIED = 0; - */ - BLOCKED_REASON_UNSPECIFIED(0), - /** - * - * - *
-     * If present, your access is blocked to revenue related metrics for this
-     * property, and this metric is revenue related.
-     * 
- * - * NO_REVENUE_METRICS = 1; - */ - NO_REVENUE_METRICS(1), - /** - * - * - *
-     * If present, your access is blocked to cost related metrics for this
-     * property, and this metric is cost related.
-     * 
- * - * NO_COST_METRICS = 2; - */ - NO_COST_METRICS(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Will never be specified in API response.
-     * 
- * - * BLOCKED_REASON_UNSPECIFIED = 0; - */ - public static final int BLOCKED_REASON_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * If present, your access is blocked to revenue related metrics for this
-     * property, and this metric is revenue related.
-     * 
- * - * NO_REVENUE_METRICS = 1; - */ - public static final int NO_REVENUE_METRICS_VALUE = 1; - /** - * - * - *
-     * If present, your access is blocked to cost related metrics for this
-     * property, and this metric is cost related.
-     * 
- * - * NO_COST_METRICS = 2; - */ - public static final int NO_COST_METRICS_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 BlockedReason 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 BlockedReason forNumber(int value) { - switch (value) { - case 0: - return BLOCKED_REASON_UNSPECIFIED; - case 1: - return NO_REVENUE_METRICS; - case 2: - return NO_COST_METRICS; - 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 BlockedReason findValueByNumber(int number) { - return BlockedReason.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.analytics.data.v1beta.MetricMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final BlockedReason[] VALUES = values(); - - public static BlockedReason 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 BlockedReason(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.MetricMetadata.BlockedReason) - } - - public static final int API_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object apiName_; - /** - * - * - *
-   * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-   * `eventCount`.
-   * 
- * - * string api_name = 1; - * - * @return The apiName. - */ - @java.lang.Override - public java.lang.String getApiName() { - java.lang.Object ref = apiName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiName_ = s; - return s; - } - } - /** - * - * - *
-   * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-   * `eventCount`.
-   * 
- * - * string api_name = 1; - * - * @return The bytes for apiName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getApiNameBytes() { - java.lang.Object ref = apiName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UI_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object uiName_; - /** - * - * - *
-   * This metric's name within the Google Analytics user interface. For example,
-   * `Event count`.
-   * 
- * - * string ui_name = 2; - * - * @return The uiName. - */ - @java.lang.Override - public java.lang.String getUiName() { - java.lang.Object ref = uiName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uiName_ = s; - return s; - } - } - /** - * - * - *
-   * This metric's name within the Google Analytics user interface. For example,
-   * `Event count`.
-   * 
- * - * string ui_name = 2; - * - * @return The bytes for uiName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUiNameBytes() { - java.lang.Object ref = uiName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Description of how this metric is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Description of how this metric is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATED_API_NAMES_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList deprecatedApiNames_; - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return A list containing the deprecatedApiNames. - */ - public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { - return deprecatedApiNames_; - } - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return The count of deprecatedApiNames. - */ - public int getDeprecatedApiNamesCount() { - return deprecatedApiNames_.size(); - } - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the element to return. - * @return The deprecatedApiNames at the given index. - */ - public java.lang.String getDeprecatedApiNames(int index) { - return deprecatedApiNames_.get(index); - } - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the value to return. - * @return The bytes of the deprecatedApiNames at the given index. - */ - public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { - return deprecatedApiNames_.getByteString(index); - } - - public static final int TYPE_FIELD_NUMBER = 5; - private int type_; - /** - * - * - *
-   * The type of this metric.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * The type of this metric.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricType result = - com.google.analytics.data.v1beta.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1beta.MetricType.UNRECOGNIZED : result; - } - - public static final int EXPRESSION_FIELD_NUMBER = 6; - private volatile java.lang.Object expression_; - /** - * - * - *
-   * The mathematical expression for this derived metric. Can be used in
-   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-   * are not expressions, and for non-expressions, this field is empty.
-   * 
- * - * string expression = 6; - * - * @return The expression. - */ - @java.lang.Override - public java.lang.String getExpression() { - java.lang.Object ref = expression_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expression_ = s; - return s; - } - } - /** - * - * - *
-   * The mathematical expression for this derived metric. Can be used in
-   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-   * are not expressions, and for non-expressions, this field is empty.
-   * 
- * - * string expression = 6; - * - * @return The bytes for expression. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExpressionBytes() { - java.lang.Object ref = expression_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOM_DEFINITION_FIELD_NUMBER = 7; - private boolean customDefinition_; - /** - * - * - *
-   * True if the metric is a custom metric for this property.
-   * 
- * - * bool custom_definition = 7; - * - * @return The customDefinition. - */ - @java.lang.Override - public boolean getCustomDefinition() { - return customDefinition_; - } - - public static final int BLOCKED_REASONS_FIELD_NUMBER = 8; - private java.util.List blockedReasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricMetadata.BlockedReason> - blockedReasons_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricMetadata.BlockedReason>() { - public com.google.analytics.data.v1beta.MetricMetadata.BlockedReason convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricMetadata.BlockedReason result = - com.google.analytics.data.v1beta.MetricMetadata.BlockedReason.valueOf(from); - return result == null - ? com.google.analytics.data.v1beta.MetricMetadata.BlockedReason.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return A list containing the blockedReasons. - */ - @java.lang.Override - public java.util.List - getBlockedReasonsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricMetadata.BlockedReason>( - blockedReasons_, blockedReasons_converter_); - } - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return The count of blockedReasons. - */ - @java.lang.Override - public int getBlockedReasonsCount() { - return blockedReasons_.size(); - } - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the element to return. - * @return The blockedReasons at the given index. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata.BlockedReason getBlockedReasons( - int index) { - return blockedReasons_converter_.convert(blockedReasons_.get(index)); - } - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return A list containing the enum numeric values on the wire for blockedReasons. - */ - @java.lang.Override - public java.util.List getBlockedReasonsValueList() { - return blockedReasons_; - } - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of blockedReasons at the given index. - */ - @java.lang.Override - public int getBlockedReasonsValue(int index) { - return blockedReasons_.get(index); - } - - private int blockedReasonsMemoizedSerializedSize; - - public static final int CATEGORY_FIELD_NUMBER = 10; - private volatile java.lang.Object category_; - /** - * - * - *
-   * The display name of the category that this metrics belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 10; - * - * @return The category. - */ - @java.lang.Override - public java.lang.String getCategory() { - java.lang.Object ref = category_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - category_ = s; - return s; - } - } - /** - * - * - *
-   * The display name of the category that this metrics belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 10; - * - * @return The bytes for category. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCategoryBytes() { - java.lang.Object ref = category_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - category_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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(apiName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - for (int i = 0; i < deprecatedApiNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deprecatedApiNames_.getRaw(i)); - } - if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expression_); - } - if (customDefinition_ != false) { - output.writeBool(7, customDefinition_); - } - if (getBlockedReasonsList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(blockedReasonsMemoizedSerializedSize); - } - for (int i = 0; i < blockedReasons_.size(); i++) { - output.writeEnumNoTag(blockedReasons_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, category_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - { - int dataSize = 0; - for (int i = 0; i < deprecatedApiNames_.size(); i++) { - dataSize += computeStringSizeNoTag(deprecatedApiNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getDeprecatedApiNamesList().size(); - } - if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expression_); - } - if (customDefinition_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, customDefinition_); - } - { - int dataSize = 0; - for (int i = 0; i < blockedReasons_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(blockedReasons_.get(i)); - } - size += dataSize; - if (!getBlockedReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - blockedReasonsMemoizedSerializedSize = dataSize; - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, category_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.MetricMetadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.MetricMetadata other = - (com.google.analytics.data.v1beta.MetricMetadata) obj; - - if (!getApiName().equals(other.getApiName())) return false; - if (!getUiName().equals(other.getUiName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getDeprecatedApiNamesList().equals(other.getDeprecatedApiNamesList())) return false; - if (type_ != other.type_) return false; - if (!getExpression().equals(other.getExpression())) return false; - if (getCustomDefinition() != other.getCustomDefinition()) return false; - if (!blockedReasons_.equals(other.blockedReasons_)) return false; - if (!getCategory().equals(other.getCategory())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + API_NAME_FIELD_NUMBER; - hash = (53 * hash) + getApiName().hashCode(); - hash = (37 * hash) + UI_NAME_FIELD_NUMBER; - hash = (53 * hash) + getUiName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getDeprecatedApiNamesCount() > 0) { - hash = (37 * hash) + DEPRECATED_API_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getDeprecatedApiNamesList().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getExpression().hashCode(); - hash = (37 * hash) + CUSTOM_DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustomDefinition()); - if (getBlockedReasonsCount() > 0) { - hash = (37 * hash) + BLOCKED_REASONS_FIELD_NUMBER; - hash = (53 * hash) + blockedReasons_.hashCode(); - } - hash = (37 * hash) + CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + getCategory().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.MetricMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Explains a metric.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.MetricMetadata) - com.google.analytics.data.v1beta.MetricMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricMetadata.class, - com.google.analytics.data.v1beta.MetricMetadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.MetricMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - apiName_ = ""; - - uiName_ = ""; - - description_ = ""; - - deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - - expression_ = ""; - - customDefinition_ = false; - - blockedReasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - category_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata build() { - com.google.analytics.data.v1beta.MetricMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata buildPartial() { - com.google.analytics.data.v1beta.MetricMetadata result = - new com.google.analytics.data.v1beta.MetricMetadata(this); - int from_bitField0_ = bitField0_; - result.apiName_ = apiName_; - result.uiName_ = uiName_; - result.description_ = description_; - if (((bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.deprecatedApiNames_ = deprecatedApiNames_; - result.type_ = type_; - result.expression_ = expression_; - result.customDefinition_ = customDefinition_; - if (((bitField0_ & 0x00000002) != 0)) { - blockedReasons_ = java.util.Collections.unmodifiableList(blockedReasons_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.blockedReasons_ = blockedReasons_; - result.category_ = category_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.MetricMetadata) { - return mergeFrom((com.google.analytics.data.v1beta.MetricMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.MetricMetadata other) { - if (other == com.google.analytics.data.v1beta.MetricMetadata.getDefaultInstance()) - return this; - if (!other.getApiName().isEmpty()) { - apiName_ = other.apiName_; - onChanged(); - } - if (!other.getUiName().isEmpty()) { - uiName_ = other.uiName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.deprecatedApiNames_.isEmpty()) { - if (deprecatedApiNames_.isEmpty()) { - deprecatedApiNames_ = other.deprecatedApiNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.addAll(other.deprecatedApiNames_); - } - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getExpression().isEmpty()) { - expression_ = other.expression_; - onChanged(); - } - if (other.getCustomDefinition() != false) { - setCustomDefinition(other.getCustomDefinition()); - } - if (!other.blockedReasons_.isEmpty()) { - if (blockedReasons_.isEmpty()) { - blockedReasons_ = other.blockedReasons_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBlockedReasonsIsMutable(); - blockedReasons_.addAll(other.blockedReasons_); - } - onChanged(); - } - if (!other.getCategory().isEmpty()) { - category_ = other.category_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.MetricMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MetricMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object apiName_ = ""; - /** - * - * - *
-     * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-     * `eventCount`.
-     * 
- * - * string api_name = 1; - * - * @return The apiName. - */ - public java.lang.String getApiName() { - java.lang.Object ref = apiName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-     * `eventCount`.
-     * 
- * - * string api_name = 1; - * - * @return The bytes for apiName. - */ - public com.google.protobuf.ByteString getApiNameBytes() { - java.lang.Object ref = apiName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-     * `eventCount`.
-     * 
- * - * string api_name = 1; - * - * @param value The apiName to set. - * @return This builder for chaining. - */ - public Builder setApiName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-     * `eventCount`.
-     * 
- * - * string api_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearApiName() { - - apiName_ = getDefaultInstance().getApiName(); - onChanged(); - return this; - } - /** - * - * - *
-     * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-     * `eventCount`.
-     * 
- * - * string api_name = 1; - * - * @param value The bytes for apiName to set. - * @return This builder for chaining. - */ - public Builder setApiNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiName_ = value; - onChanged(); - return this; - } - - private java.lang.Object uiName_ = ""; - /** - * - * - *
-     * This metric's name within the Google Analytics user interface. For example,
-     * `Event count`.
-     * 
- * - * string ui_name = 2; - * - * @return The uiName. - */ - public java.lang.String getUiName() { - java.lang.Object ref = uiName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uiName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This metric's name within the Google Analytics user interface. For example,
-     * `Event count`.
-     * 
- * - * string ui_name = 2; - * - * @return The bytes for uiName. - */ - public com.google.protobuf.ByteString getUiNameBytes() { - java.lang.Object ref = uiName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uiName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This metric's name within the Google Analytics user interface. For example,
-     * `Event count`.
-     * 
- * - * string ui_name = 2; - * - * @param value The uiName to set. - * @return This builder for chaining. - */ - public Builder setUiName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uiName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This metric's name within the Google Analytics user interface. For example,
-     * `Event count`.
-     * 
- * - * string ui_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearUiName() { - - uiName_ = getDefaultInstance().getUiName(); - onChanged(); - return this; - } - /** - * - * - *
-     * This metric's name within the Google Analytics user interface. For example,
-     * `Event count`.
-     * 
- * - * string ui_name = 2; - * - * @param value The bytes for uiName to set. - * @return This builder for chaining. - */ - public Builder setUiNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uiName_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Description of how this metric is used and calculated.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Description of how this metric is used and calculated.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Description of how this metric is used and calculated.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Description of how this metric is used and calculated.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Description of how this metric is used and calculated.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList deprecatedApiNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureDeprecatedApiNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(deprecatedApiNames_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @return A list containing the deprecatedApiNames. - */ - public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() { - return deprecatedApiNames_.getUnmodifiableView(); - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @return The count of deprecatedApiNames. - */ - public int getDeprecatedApiNamesCount() { - return deprecatedApiNames_.size(); - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the element to return. - * @return The deprecatedApiNames at the given index. - */ - public java.lang.String getDeprecatedApiNames(int index) { - return deprecatedApiNames_.get(index); - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the value to return. - * @return The bytes of the deprecatedApiNames at the given index. - */ - public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) { - return deprecatedApiNames_.getByteString(index); - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index to set the value at. - * @param value The deprecatedApiNames to set. - * @return This builder for chaining. - */ - public Builder setDeprecatedApiNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param value The deprecatedApiNames to add. - * @return This builder for chaining. - */ - public Builder addDeprecatedApiNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param values The deprecatedApiNames to add. - * @return This builder for chaining. - */ - public Builder addAllDeprecatedApiNames(java.lang.Iterable values) { - ensureDeprecatedApiNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deprecatedApiNames_); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @return This builder for chaining. - */ - public Builder clearDeprecatedApiNames() { - deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Still usable but deprecated names for this metric. If populated, this
-     * metric is available by either `apiName` or one of `deprecatedApiNames`
-     * for a period of time. After the deprecation period, the metric will be
-     * available only by `apiName`.
-     * 
- * - * repeated string deprecated_api_names = 4; - * - * @param value The bytes of the deprecatedApiNames to add. - * @return This builder for chaining. - */ - public Builder addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.add(value); - onChanged(); - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricType result = - com.google.analytics.data.v1beta.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1beta.MetricType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.data.v1beta.MetricType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object expression_ = ""; - /** - * - * - *
-     * The mathematical expression for this derived metric. Can be used in
-     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-     * are not expressions, and for non-expressions, this field is empty.
-     * 
- * - * string expression = 6; - * - * @return The expression. - */ - public java.lang.String getExpression() { - java.lang.Object ref = expression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expression_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The mathematical expression for this derived metric. Can be used in
-     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-     * are not expressions, and for non-expressions, this field is empty.
-     * 
- * - * string expression = 6; - * - * @return The bytes for expression. - */ - public com.google.protobuf.ByteString getExpressionBytes() { - java.lang.Object ref = expression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The mathematical expression for this derived metric. Can be used in
-     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-     * are not expressions, and for non-expressions, this field is empty.
-     * 
- * - * string expression = 6; - * - * @param value The expression to set. - * @return This builder for chaining. - */ - public Builder setExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expression_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The mathematical expression for this derived metric. Can be used in
-     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-     * are not expressions, and for non-expressions, this field is empty.
-     * 
- * - * string expression = 6; - * - * @return This builder for chaining. - */ - public Builder clearExpression() { - - expression_ = getDefaultInstance().getExpression(); - onChanged(); - return this; - } - /** - * - * - *
-     * The mathematical expression for this derived metric. Can be used in
-     * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-     * are not expressions, and for non-expressions, this field is empty.
-     * 
- * - * string expression = 6; - * - * @param value The bytes for expression to set. - * @return This builder for chaining. - */ - public Builder setExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expression_ = value; - onChanged(); - return this; - } - - private boolean customDefinition_; - /** - * - * - *
-     * True if the metric is a custom metric for this property.
-     * 
- * - * bool custom_definition = 7; - * - * @return The customDefinition. - */ - @java.lang.Override - public boolean getCustomDefinition() { - return customDefinition_; - } - /** - * - * - *
-     * True if the metric is a custom metric for this property.
-     * 
- * - * bool custom_definition = 7; - * - * @param value The customDefinition to set. - * @return This builder for chaining. - */ - public Builder setCustomDefinition(boolean value) { - - customDefinition_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * True if the metric is a custom metric for this property.
-     * 
- * - * bool custom_definition = 7; - * - * @return This builder for chaining. - */ - public Builder clearCustomDefinition() { - - customDefinition_ = false; - onChanged(); - return this; - } - - private java.util.List blockedReasons_ = java.util.Collections.emptyList(); - - private void ensureBlockedReasonsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - blockedReasons_ = new java.util.ArrayList(blockedReasons_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return A list containing the blockedReasons. - */ - public java.util.List - getBlockedReasonsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricMetadata.BlockedReason>( - blockedReasons_, blockedReasons_converter_); - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return The count of blockedReasons. - */ - public int getBlockedReasonsCount() { - return blockedReasons_.size(); - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the element to return. - * @return The blockedReasons at the given index. - */ - public com.google.analytics.data.v1beta.MetricMetadata.BlockedReason getBlockedReasons( - int index) { - return blockedReasons_converter_.convert(blockedReasons_.get(index)); - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index to set the value at. - * @param value The blockedReasons to set. - * @return This builder for chaining. - */ - public Builder setBlockedReasons( - int index, com.google.analytics.data.v1beta.MetricMetadata.BlockedReason value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlockedReasonsIsMutable(); - blockedReasons_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param value The blockedReasons to add. - * @return This builder for chaining. - */ - public Builder addBlockedReasons( - com.google.analytics.data.v1beta.MetricMetadata.BlockedReason value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlockedReasonsIsMutable(); - blockedReasons_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param values The blockedReasons to add. - * @return This builder for chaining. - */ - public Builder addAllBlockedReasons( - java.lang.Iterable - values) { - ensureBlockedReasonsIsMutable(); - for (com.google.analytics.data.v1beta.MetricMetadata.BlockedReason value : values) { - blockedReasons_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return This builder for chaining. - */ - public Builder clearBlockedReasons() { - blockedReasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return A list containing the enum numeric values on the wire for blockedReasons. - */ - public java.util.List getBlockedReasonsValueList() { - return java.util.Collections.unmodifiableList(blockedReasons_); - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of blockedReasons at the given index. - */ - public int getBlockedReasonsValue(int index) { - return blockedReasons_.get(index); - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of blockedReasons at the given index. - * @return This builder for chaining. - */ - public Builder setBlockedReasonsValue(int index, int value) { - ensureBlockedReasonsIsMutable(); - blockedReasons_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param value The enum numeric value on the wire for blockedReasons to add. - * @return This builder for chaining. - */ - public Builder addBlockedReasonsValue(int value) { - ensureBlockedReasonsIsMutable(); - blockedReasons_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * If reasons are specified, your access is blocked to this metric for this
-     * property. API requests from you to this property for this metric will
-     * succeed; however, the report will contain only zeros for this metric. API
-     * requests with metric filters on blocked metrics will fail. If reasons are
-     * empty, you have access to this metric.
-     * To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param values The enum numeric values on the wire for blockedReasons to add. - * @return This builder for chaining. - */ - public Builder addAllBlockedReasonsValue(java.lang.Iterable values) { - ensureBlockedReasonsIsMutable(); - for (int value : values) { - blockedReasons_.add(value); - } - onChanged(); - return this; - } - - private java.lang.Object category_ = ""; - /** - * - * - *
-     * The display name of the category that this metrics belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 10; - * - * @return The category. - */ - public java.lang.String getCategory() { - java.lang.Object ref = category_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - category_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The display name of the category that this metrics belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 10; - * - * @return The bytes for category. - */ - public com.google.protobuf.ByteString getCategoryBytes() { - java.lang.Object ref = category_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - category_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The display name of the category that this metrics belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 10; - * - * @param value The category to set. - * @return This builder for chaining. - */ - public Builder setCategory(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - category_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The display name of the category that this metrics belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 10; - * - * @return This builder for chaining. - */ - public Builder clearCategory() { - - category_ = getDefaultInstance().getCategory(); - onChanged(); - return this; - } - /** - * - * - *
-     * The display name of the category that this metrics belongs to. Similar
-     * dimensions and metrics are categorized together.
-     * 
- * - * string category = 10; - * - * @param value The bytes for category to set. - * @return This builder for chaining. - */ - public Builder setCategoryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - category_ = 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.analytics.data.v1beta.MetricMetadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.MetricMetadata) - private static final com.google.analytics.data.v1beta.MetricMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.MetricMetadata(); - } - - public static com.google.analytics.data.v1beta.MetricMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadataOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadataOrBuilder.java deleted file mode 100644 index a890ad10..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadataOrBuilder.java +++ /dev/null @@ -1,360 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface MetricMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.MetricMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-   * `eventCount`.
-   * 
- * - * string api_name = 1; - * - * @return The apiName. - */ - java.lang.String getApiName(); - /** - * - * - *
-   * A metric name. Useable in [Metric](#Metric)'s `name`. For example,
-   * `eventCount`.
-   * 
- * - * string api_name = 1; - * - * @return The bytes for apiName. - */ - com.google.protobuf.ByteString getApiNameBytes(); - - /** - * - * - *
-   * This metric's name within the Google Analytics user interface. For example,
-   * `Event count`.
-   * 
- * - * string ui_name = 2; - * - * @return The uiName. - */ - java.lang.String getUiName(); - /** - * - * - *
-   * This metric's name within the Google Analytics user interface. For example,
-   * `Event count`.
-   * 
- * - * string ui_name = 2; - * - * @return The bytes for uiName. - */ - com.google.protobuf.ByteString getUiNameBytes(); - - /** - * - * - *
-   * Description of how this metric is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Description of how this metric is used and calculated.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return A list containing the deprecatedApiNames. - */ - java.util.List getDeprecatedApiNamesList(); - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @return The count of deprecatedApiNames. - */ - int getDeprecatedApiNamesCount(); - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the element to return. - * @return The deprecatedApiNames at the given index. - */ - java.lang.String getDeprecatedApiNames(int index); - /** - * - * - *
-   * Still usable but deprecated names for this metric. If populated, this
-   * metric is available by either `apiName` or one of `deprecatedApiNames`
-   * for a period of time. After the deprecation period, the metric will be
-   * available only by `apiName`.
-   * 
- * - * repeated string deprecated_api_names = 4; - * - * @param index The index of the value to return. - * @return The bytes of the deprecatedApiNames at the given index. - */ - com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index); - - /** - * - * - *
-   * The type of this metric.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * The type of this metric.
-   * 
- * - * .google.analytics.data.v1beta.MetricType type = 5; - * - * @return The type. - */ - com.google.analytics.data.v1beta.MetricType getType(); - - /** - * - * - *
-   * The mathematical expression for this derived metric. Can be used in
-   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-   * are not expressions, and for non-expressions, this field is empty.
-   * 
- * - * string expression = 6; - * - * @return The expression. - */ - java.lang.String getExpression(); - /** - * - * - *
-   * The mathematical expression for this derived metric. Can be used in
-   * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
-   * are not expressions, and for non-expressions, this field is empty.
-   * 
- * - * string expression = 6; - * - * @return The bytes for expression. - */ - com.google.protobuf.ByteString getExpressionBytes(); - - /** - * - * - *
-   * True if the metric is a custom metric for this property.
-   * 
- * - * bool custom_definition = 7; - * - * @return The customDefinition. - */ - boolean getCustomDefinition(); - - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return A list containing the blockedReasons. - */ - java.util.List - getBlockedReasonsList(); - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return The count of blockedReasons. - */ - int getBlockedReasonsCount(); - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the element to return. - * @return The blockedReasons at the given index. - */ - com.google.analytics.data.v1beta.MetricMetadata.BlockedReason getBlockedReasons(int index); - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @return A list containing the enum numeric values on the wire for blockedReasons. - */ - java.util.List getBlockedReasonsValueList(); - /** - * - * - *
-   * If reasons are specified, your access is blocked to this metric for this
-   * property. API requests from you to this property for this metric will
-   * succeed; however, the report will contain only zeros for this metric. API
-   * requests with metric filters on blocked metrics will fail. If reasons are
-   * empty, you have access to this metric.
-   * To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of blockedReasons at the given index. - */ - int getBlockedReasonsValue(int index); - - /** - * - * - *
-   * The display name of the category that this metrics belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 10; - * - * @return The category. - */ - java.lang.String getCategory(); - /** - * - * - *
-   * The display name of the category that this metrics belongs to. Similar
-   * dimensions and metrics are categorized together.
-   * 
- * - * string category = 10; - * - * @return The bytes for category. - */ - com.google.protobuf.ByteString getCategoryBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricOrBuilder.java deleted file mode 100644 index 3ff2f96f..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface MetricOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Metric) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of the metric. See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of metric names.
-   * If `expression` is specified, `name` can be any string that you would like
-   * within the allowed character set. For example if `expression` is
-   * `screenPageViews/sessions`, you could call that metric's name =
-   * `viewsPerSession`. Metric names that you choose must match the regular
-   * expression `^[a-zA-Z0-9_]$`.
-   * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-   * `expression`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the metric. See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of metric names.
-   * If `expression` is specified, `name` can be any string that you would like
-   * within the allowed character set. For example if `expression` is
-   * `screenPageViews/sessions`, you could call that metric's name =
-   * `viewsPerSession`. Metric names that you choose must match the regular
-   * expression `^[a-zA-Z0-9_]$`.
-   * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
-   * `expression`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * A mathematical expression for derived metrics. For example, the metric
-   * Event count per user is `eventCount/totalUsers`.
-   * 
- * - * string expression = 2; - * - * @return The expression. - */ - java.lang.String getExpression(); - /** - * - * - *
-   * A mathematical expression for derived metrics. For example, the metric
-   * Event count per user is `eventCount/totalUsers`.
-   * 
- * - * string expression = 2; - * - * @return The bytes for expression. - */ - com.google.protobuf.ByteString getExpressionBytes(); - - /** - * - * - *
-   * Indicates if a metric is invisible in the report response. If a metric is
-   * invisible, the metric will not produce a column in the response, but can be
-   * used in `metricFilter`, `orderBys`, or a metric `expression`.
-   * 
- * - * bool invisible = 3; - * - * @return The invisible. - */ - boolean getInvisible(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricType.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricType.java deleted file mode 100644 index 2d73d42b..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricType.java +++ /dev/null @@ -1,396 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * A metric's value type.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.MetricType} - */ -public enum MetricType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified type.
-   * 
- * - * METRIC_TYPE_UNSPECIFIED = 0; - */ - METRIC_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Integer type.
-   * 
- * - * TYPE_INTEGER = 1; - */ - TYPE_INTEGER(1), - /** - * - * - *
-   * Floating point type.
-   * 
- * - * TYPE_FLOAT = 2; - */ - TYPE_FLOAT(2), - /** - * - * - *
-   * A duration of seconds; a special floating point type.
-   * 
- * - * TYPE_SECONDS = 4; - */ - TYPE_SECONDS(4), - /** - * - * - *
-   * A duration in milliseconds; a special floating point type.
-   * 
- * - * TYPE_MILLISECONDS = 5; - */ - TYPE_MILLISECONDS(5), - /** - * - * - *
-   * A duration in minutes; a special floating point type.
-   * 
- * - * TYPE_MINUTES = 6; - */ - TYPE_MINUTES(6), - /** - * - * - *
-   * A duration in hours; a special floating point type.
-   * 
- * - * TYPE_HOURS = 7; - */ - TYPE_HOURS(7), - /** - * - * - *
-   * A custom metric of standard type; a special floating point type.
-   * 
- * - * TYPE_STANDARD = 8; - */ - TYPE_STANDARD(8), - /** - * - * - *
-   * An amount of money; a special floating point type.
-   * 
- * - * TYPE_CURRENCY = 9; - */ - TYPE_CURRENCY(9), - /** - * - * - *
-   * A length in feet; a special floating point type.
-   * 
- * - * TYPE_FEET = 10; - */ - TYPE_FEET(10), - /** - * - * - *
-   * A length in miles; a special floating point type.
-   * 
- * - * TYPE_MILES = 11; - */ - TYPE_MILES(11), - /** - * - * - *
-   * A length in meters; a special floating point type.
-   * 
- * - * TYPE_METERS = 12; - */ - TYPE_METERS(12), - /** - * - * - *
-   * A length in kilometers; a special floating point type.
-   * 
- * - * TYPE_KILOMETERS = 13; - */ - TYPE_KILOMETERS(13), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified type.
-   * 
- * - * METRIC_TYPE_UNSPECIFIED = 0; - */ - public static final int METRIC_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Integer type.
-   * 
- * - * TYPE_INTEGER = 1; - */ - public static final int TYPE_INTEGER_VALUE = 1; - /** - * - * - *
-   * Floating point type.
-   * 
- * - * TYPE_FLOAT = 2; - */ - public static final int TYPE_FLOAT_VALUE = 2; - /** - * - * - *
-   * A duration of seconds; a special floating point type.
-   * 
- * - * TYPE_SECONDS = 4; - */ - public static final int TYPE_SECONDS_VALUE = 4; - /** - * - * - *
-   * A duration in milliseconds; a special floating point type.
-   * 
- * - * TYPE_MILLISECONDS = 5; - */ - public static final int TYPE_MILLISECONDS_VALUE = 5; - /** - * - * - *
-   * A duration in minutes; a special floating point type.
-   * 
- * - * TYPE_MINUTES = 6; - */ - public static final int TYPE_MINUTES_VALUE = 6; - /** - * - * - *
-   * A duration in hours; a special floating point type.
-   * 
- * - * TYPE_HOURS = 7; - */ - public static final int TYPE_HOURS_VALUE = 7; - /** - * - * - *
-   * A custom metric of standard type; a special floating point type.
-   * 
- * - * TYPE_STANDARD = 8; - */ - public static final int TYPE_STANDARD_VALUE = 8; - /** - * - * - *
-   * An amount of money; a special floating point type.
-   * 
- * - * TYPE_CURRENCY = 9; - */ - public static final int TYPE_CURRENCY_VALUE = 9; - /** - * - * - *
-   * A length in feet; a special floating point type.
-   * 
- * - * TYPE_FEET = 10; - */ - public static final int TYPE_FEET_VALUE = 10; - /** - * - * - *
-   * A length in miles; a special floating point type.
-   * 
- * - * TYPE_MILES = 11; - */ - public static final int TYPE_MILES_VALUE = 11; - /** - * - * - *
-   * A length in meters; a special floating point type.
-   * 
- * - * TYPE_METERS = 12; - */ - public static final int TYPE_METERS_VALUE = 12; - /** - * - * - *
-   * A length in kilometers; a special floating point type.
-   * 
- * - * TYPE_KILOMETERS = 13; - */ - public static final int TYPE_KILOMETERS_VALUE = 13; - - 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 MetricType 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 MetricType forNumber(int value) { - switch (value) { - case 0: - return METRIC_TYPE_UNSPECIFIED; - case 1: - return TYPE_INTEGER; - case 2: - return TYPE_FLOAT; - case 4: - return TYPE_SECONDS; - case 5: - return TYPE_MILLISECONDS; - case 6: - return TYPE_MINUTES; - case 7: - return TYPE_HOURS; - case 8: - return TYPE_STANDARD; - case 9: - return TYPE_CURRENCY; - case 10: - return TYPE_FEET; - case 11: - return TYPE_MILES; - case 12: - return TYPE_METERS; - case 13: - return TYPE_KILOMETERS; - 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 MetricType findValueByNumber(int number) { - return MetricType.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.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(1); - } - - private static final MetricType[] VALUES = values(); - - public static MetricType 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 MetricType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.MetricType) -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValue.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValue.java deleted file mode 100644 index af070afd..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValue.java +++ /dev/null @@ -1,764 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The value of a metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricValue} - */ -public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.MetricValue) - MetricValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricValue.newBuilder() to construct. - private MetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricValue() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MetricValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - oneValueCase_ = 4; - oneValue_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricValue.class, - com.google.analytics.data.v1beta.MetricValue.Builder.class); - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public enum OneValueCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VALUE(4), - ONEVALUE_NOT_SET(0); - private final int value; - - private OneValueCase(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 OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 4: - return VALUE; - case 0: - return ONEVALUE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public static final int VALUE_FIELD_NUMBER = 4; - /** - * - * - *
-   * Measurement value. See MetricHeader for type.
-   * 
- * - * string value = 4; - * - * @return Whether the value field is set. - */ - public boolean hasValue() { - return oneValueCase_ == 4; - } - /** - * - * - *
-   * Measurement value. See MetricHeader for type.
-   * 
- * - * string value = 4; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = ""; - if (oneValueCase_ == 4) { - ref = oneValue_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneValueCase_ == 4) { - oneValue_ = s; - } - return s; - } - } - /** - * - * - *
-   * Measurement value. See MetricHeader for type.
-   * 
- * - * string value = 4; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = ""; - if (oneValueCase_ == 4) { - ref = oneValue_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneValueCase_ == 4) { - oneValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneValueCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oneValue_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneValueCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oneValue_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.MetricValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.MetricValue other = - (com.google.analytics.data.v1beta.MetricValue) obj; - - if (!getOneValueCase().equals(other.getOneValueCase())) return false; - switch (oneValueCase_) { - case 4: - if (!getValue().equals(other.getValue())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 4: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MetricValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.MetricValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 value of a metric.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MetricValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.MetricValue) - com.google.analytics.data.v1beta.MetricValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MetricValue.class, - com.google.analytics.data.v1beta.MetricValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.MetricValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MetricValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricValue getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.MetricValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricValue build() { - com.google.analytics.data.v1beta.MetricValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricValue buildPartial() { - com.google.analytics.data.v1beta.MetricValue result = - new com.google.analytics.data.v1beta.MetricValue(this); - if (oneValueCase_ == 4) { - result.oneValue_ = oneValue_; - } - result.oneValueCase_ = oneValueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.MetricValue) { - return mergeFrom((com.google.analytics.data.v1beta.MetricValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.MetricValue other) { - if (other == com.google.analytics.data.v1beta.MetricValue.getDefaultInstance()) return this; - switch (other.getOneValueCase()) { - case VALUE: - { - oneValueCase_ = 4; - oneValue_ = other.oneValue_; - onChanged(); - break; - } - case ONEVALUE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.MetricValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MetricValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public Builder clearOneValue() { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-     * Measurement value. See MetricHeader for type.
-     * 
- * - * string value = 4; - * - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return oneValueCase_ == 4; - } - /** - * - * - *
-     * Measurement value. See MetricHeader for type.
-     * 
- * - * string value = 4; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = ""; - if (oneValueCase_ == 4) { - ref = oneValue_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneValueCase_ == 4) { - oneValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Measurement value. See MetricHeader for type.
-     * 
- * - * string value = 4; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = ""; - if (oneValueCase_ == 4) { - ref = oneValue_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneValueCase_ == 4) { - oneValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Measurement value. See MetricHeader for type.
-     * 
- * - * string value = 4; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oneValueCase_ = 4; - oneValue_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Measurement value. See MetricHeader for type.
-     * 
- * - * string value = 4; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - if (oneValueCase_ == 4) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Measurement value. See MetricHeader for type.
-     * 
- * - * string value = 4; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oneValueCase_ = 4; - oneValue_ = 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.analytics.data.v1beta.MetricValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.MetricValue) - private static final com.google.analytics.data.v1beta.MetricValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.MetricValue(); - } - - public static com.google.analytics.data.v1beta.MetricValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MetricValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValueOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValueOrBuilder.java deleted file mode 100644 index a5578fdd..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValueOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface MetricValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.MetricValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Measurement value. See MetricHeader for type.
-   * 
- * - * string value = 4; - * - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * - * - *
-   * Measurement value. See MetricHeader for type.
-   * 
- * - * string value = 4; - * - * @return The value. - */ - java.lang.String getValue(); - /** - * - * - *
-   * Measurement value. See MetricHeader for type.
-   * 
- * - * string value = 4; - * - * @return The bytes for value. - */ - com.google.protobuf.ByteString getValueBytes(); - - public com.google.analytics.data.v1beta.MetricValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRange.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRange.java deleted file mode 100644 index c930f8ad..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRange.java +++ /dev/null @@ -1,1000 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ...,
- * endMinutesAgo. Requests are allowed up to 2 minute ranges.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MinuteRange} - */ -public final class MinuteRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.MinuteRange) - MinuteRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use MinuteRange.newBuilder() to construct. - private MinuteRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MinuteRange() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MinuteRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MinuteRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - bitField0_ |= 0x00000001; - startMinutesAgo_ = input.readInt32(); - break; - } - case 16: - { - bitField0_ |= 0x00000002; - endMinutesAgo_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MinuteRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MinuteRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MinuteRange.class, - com.google.analytics.data.v1beta.MinuteRange.Builder.class); - } - - private int bitField0_; - public static final int START_MINUTES_AGO_FIELD_NUMBER = 1; - private int startMinutesAgo_; - /** - * - * - *
-   * The inclusive start minute for the query as a number of minutes before now.
-   * For example, `"startMinutesAgo": 29` specifies the report should include
-   * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-   * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-   * properties can request up to the last 30 minutes of event data
-   * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-   * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-   * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return Whether the startMinutesAgo field is set. - */ - @java.lang.Override - public boolean hasStartMinutesAgo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The inclusive start minute for the query as a number of minutes before now.
-   * For example, `"startMinutesAgo": 29` specifies the report should include
-   * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-   * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-   * properties can request up to the last 30 minutes of event data
-   * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-   * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-   * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return The startMinutesAgo. - */ - @java.lang.Override - public int getStartMinutesAgo() { - return startMinutesAgo_; - } - - public static final int END_MINUTES_AGO_FIELD_NUMBER = 2; - private int endMinutesAgo_; - /** - * - * - *
-   * The inclusive end minute for the query as a number of minutes before now.
-   * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-   * specifies the report should include event data from prior to 15 minutes
-   * ago.
-   * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-   * properties can request any minute in the last 30 minutes of event data
-   * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-   * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-   * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return Whether the endMinutesAgo field is set. - */ - @java.lang.Override - public boolean hasEndMinutesAgo() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The inclusive end minute for the query as a number of minutes before now.
-   * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-   * specifies the report should include event data from prior to 15 minutes
-   * ago.
-   * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-   * properties can request any minute in the last 30 minutes of event data
-   * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-   * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-   * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return The endMinutesAgo. - */ - @java.lang.Override - public int getEndMinutesAgo() { - return endMinutesAgo_; - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Assigns a name to this minute range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, minute ranges are named by their zero based index
-   * in the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-   * Assigns a name to this minute range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, minute ranges are named by their zero based index
-   * in the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @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 (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, startMinutesAgo_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, endMinutesAgo_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startMinutesAgo_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endMinutesAgo_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.MinuteRange)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.MinuteRange other = - (com.google.analytics.data.v1beta.MinuteRange) obj; - - if (hasStartMinutesAgo() != other.hasStartMinutesAgo()) return false; - if (hasStartMinutesAgo()) { - if (getStartMinutesAgo() != other.getStartMinutesAgo()) return false; - } - if (hasEndMinutesAgo() != other.hasEndMinutesAgo()) return false; - if (hasEndMinutesAgo()) { - if (getEndMinutesAgo() != other.getEndMinutesAgo()) return false; - } - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartMinutesAgo()) { - hash = (37 * hash) + START_MINUTES_AGO_FIELD_NUMBER; - hash = (53 * hash) + getStartMinutesAgo(); - } - if (hasEndMinutesAgo()) { - hash = (37 * hash) + END_MINUTES_AGO_FIELD_NUMBER; - hash = (53 * hash) + getEndMinutesAgo(); - } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.MinuteRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.MinuteRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ...,
-   * endMinutesAgo. Requests are allowed up to 2 minute ranges.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.MinuteRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.MinuteRange) - com.google.analytics.data.v1beta.MinuteRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MinuteRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MinuteRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.MinuteRange.class, - com.google.analytics.data.v1beta.MinuteRange.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.MinuteRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - startMinutesAgo_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - endMinutesAgo_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_MinuteRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MinuteRange getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.MinuteRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MinuteRange build() { - com.google.analytics.data.v1beta.MinuteRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MinuteRange buildPartial() { - com.google.analytics.data.v1beta.MinuteRange result = - new com.google.analytics.data.v1beta.MinuteRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startMinutesAgo_ = startMinutesAgo_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.endMinutesAgo_ = endMinutesAgo_; - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.MinuteRange) { - return mergeFrom((com.google.analytics.data.v1beta.MinuteRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.MinuteRange other) { - if (other == com.google.analytics.data.v1beta.MinuteRange.getDefaultInstance()) return this; - if (other.hasStartMinutesAgo()) { - setStartMinutesAgo(other.getStartMinutesAgo()); - } - if (other.hasEndMinutesAgo()) { - setEndMinutesAgo(other.getEndMinutesAgo()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.MinuteRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MinuteRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int startMinutesAgo_; - /** - * - * - *
-     * The inclusive start minute for the query as a number of minutes before now.
-     * For example, `"startMinutesAgo": 29` specifies the report should include
-     * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-     * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-     * properties can request up to the last 30 minutes of event data
-     * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-     * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-     * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return Whether the startMinutesAgo field is set. - */ - @java.lang.Override - public boolean hasStartMinutesAgo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The inclusive start minute for the query as a number of minutes before now.
-     * For example, `"startMinutesAgo": 29` specifies the report should include
-     * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-     * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-     * properties can request up to the last 30 minutes of event data
-     * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-     * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-     * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return The startMinutesAgo. - */ - @java.lang.Override - public int getStartMinutesAgo() { - return startMinutesAgo_; - } - /** - * - * - *
-     * The inclusive start minute for the query as a number of minutes before now.
-     * For example, `"startMinutesAgo": 29` specifies the report should include
-     * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-     * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-     * properties can request up to the last 30 minutes of event data
-     * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-     * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-     * 
- * - * optional int32 start_minutes_ago = 1; - * - * @param value The startMinutesAgo to set. - * @return This builder for chaining. - */ - public Builder setStartMinutesAgo(int value) { - bitField0_ |= 0x00000001; - startMinutesAgo_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive start minute for the query as a number of minutes before now.
-     * For example, `"startMinutesAgo": 29` specifies the report should include
-     * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-     * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-     * properties can request up to the last 30 minutes of event data
-     * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-     * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-     * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return This builder for chaining. - */ - public Builder clearStartMinutesAgo() { - bitField0_ = (bitField0_ & ~0x00000001); - startMinutesAgo_ = 0; - onChanged(); - return this; - } - - private int endMinutesAgo_; - /** - * - * - *
-     * The inclusive end minute for the query as a number of minutes before now.
-     * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-     * specifies the report should include event data from prior to 15 minutes
-     * ago.
-     * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-     * properties can request any minute in the last 30 minutes of event data
-     * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-     * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-     * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return Whether the endMinutesAgo field is set. - */ - @java.lang.Override - public boolean hasEndMinutesAgo() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The inclusive end minute for the query as a number of minutes before now.
-     * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-     * specifies the report should include event data from prior to 15 minutes
-     * ago.
-     * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-     * properties can request any minute in the last 30 minutes of event data
-     * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-     * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-     * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return The endMinutesAgo. - */ - @java.lang.Override - public int getEndMinutesAgo() { - return endMinutesAgo_; - } - /** - * - * - *
-     * The inclusive end minute for the query as a number of minutes before now.
-     * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-     * specifies the report should include event data from prior to 15 minutes
-     * ago.
-     * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-     * properties can request any minute in the last 30 minutes of event data
-     * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-     * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-     * 
- * - * optional int32 end_minutes_ago = 2; - * - * @param value The endMinutesAgo to set. - * @return This builder for chaining. - */ - public Builder setEndMinutesAgo(int value) { - bitField0_ |= 0x00000002; - endMinutesAgo_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive end minute for the query as a number of minutes before now.
-     * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-     * specifies the report should include event data from prior to 15 minutes
-     * ago.
-     * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-     * properties can request any minute in the last 30 minutes of event data
-     * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-     * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-     * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return This builder for chaining. - */ - public Builder clearEndMinutesAgo() { - bitField0_ = (bitField0_ & ~0x00000002); - endMinutesAgo_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Assigns a name to this minute range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, minute ranges are named by their zero based index
-     * in the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-     * Assigns a name to this minute range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, minute ranges are named by their zero based index
-     * in the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-     * Assigns a name to this minute range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, minute ranges are named by their zero based index
-     * in the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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; - } - /** - * - * - *
-     * Assigns a name to this minute range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, minute ranges are named by their zero based index
-     * in the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Assigns a name to this minute range. The dimension `dateRange` is valued to
-     * this name in a report response. If set, cannot begin with `date_range_` or
-     * `RESERVED_`. If not set, minute ranges are named by their zero based index
-     * in the request: `date_range_0`, `date_range_1`, etc.
-     * 
- * - * string name = 3; - * - * @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.analytics.data.v1beta.MinuteRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.MinuteRange) - private static final com.google.analytics.data.v1beta.MinuteRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.MinuteRange(); - } - - public static com.google.analytics.data.v1beta.MinuteRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MinuteRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MinuteRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.MinuteRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRangeOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRangeOrBuilder.java deleted file mode 100644 index 3726076c..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRangeOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface MinuteRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.MinuteRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The inclusive start minute for the query as a number of minutes before now.
-   * For example, `"startMinutesAgo": 29` specifies the report should include
-   * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-   * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-   * properties can request up to the last 30 minutes of event data
-   * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-   * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-   * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return Whether the startMinutesAgo field is set. - */ - boolean hasStartMinutesAgo(); - /** - * - * - *
-   * The inclusive start minute for the query as a number of minutes before now.
-   * For example, `"startMinutesAgo": 29` specifies the report should include
-   * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
-   * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
-   * properties can request up to the last 30 minutes of event data
-   * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
-   * the last 60 minutes of event data (`startMinutesAgo <= 59`).
-   * 
- * - * optional int32 start_minutes_ago = 1; - * - * @return The startMinutesAgo. - */ - int getStartMinutesAgo(); - - /** - * - * - *
-   * The inclusive end minute for the query as a number of minutes before now.
-   * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-   * specifies the report should include event data from prior to 15 minutes
-   * ago.
-   * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-   * properties can request any minute in the last 30 minutes of event data
-   * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-   * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-   * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return Whether the endMinutesAgo field is set. - */ - boolean hasEndMinutesAgo(); - /** - * - * - *
-   * The inclusive end minute for the query as a number of minutes before now.
-   * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
-   * specifies the report should include event data from prior to 15 minutes
-   * ago.
-   * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
-   * properties can request any minute in the last 30 minutes of event data
-   * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
-   * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
-   * 
- * - * optional int32 end_minutes_ago = 2; - * - * @return The endMinutesAgo. - */ - int getEndMinutesAgo(); - - /** - * - * - *
-   * Assigns a name to this minute range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, minute ranges are named by their zero based index
-   * in the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Assigns a name to this minute range. The dimension `dateRange` is valued to
-   * this name in a report response. If set, cannot begin with `date_range_` or
-   * `RESERVED_`. If not set, minute ranges are named by their zero based index
-   * in the request: `date_range_0`, `date_range_1`, etc.
-   * 
- * - * string name = 3; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValue.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValue.java deleted file mode 100644 index 027ae1aa..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValue.java +++ /dev/null @@ -1,803 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * To represent a number.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.NumericValue} - */ -public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.NumericValue) - NumericValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericValue.newBuilder() to construct. - private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NumericValue() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NumericValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NumericValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - oneValueCase_ = 1; - oneValue_ = input.readInt64(); - break; - } - case 17: - { - oneValueCase_ = 2; - oneValue_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.NumericValue.class, - com.google.analytics.data.v1beta.NumericValue.Builder.class); - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public enum OneValueCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT64_VALUE(1), - DOUBLE_VALUE(2), - ONEVALUE_NOT_SET(0); - private final int value; - - private OneValueCase(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 OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 1: - return INT64_VALUE; - case 2: - return DOUBLE_VALUE; - case 0: - return ONEVALUE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public static final int INT64_VALUE_FIELD_NUMBER = 1; - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return Whether the int64Value field is set. - */ - @java.lang.Override - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return The int64Value. - */ - @java.lang.Override - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneValueCase_ == 1) { - output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneValueCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 1, (long) ((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) oneValue_)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.NumericValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.NumericValue other = - (com.google.analytics.data.v1beta.NumericValue) obj; - - if (!getOneValueCase().equals(other.getOneValueCase())) return false; - switch (oneValueCase_) { - case 1: - if (getInt64Value() != other.getInt64Value()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 1: - hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); - break; - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.NumericValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.NumericValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.NumericValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * To represent a number.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.NumericValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.NumericValue) - com.google.analytics.data.v1beta.NumericValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.NumericValue.class, - com.google.analytics.data.v1beta.NumericValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.NumericValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue build() { - com.google.analytics.data.v1beta.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue buildPartial() { - com.google.analytics.data.v1beta.NumericValue result = - new com.google.analytics.data.v1beta.NumericValue(this); - if (oneValueCase_ == 1) { - result.oneValue_ = oneValue_; - } - if (oneValueCase_ == 2) { - result.oneValue_ = oneValue_; - } - result.oneValueCase_ = oneValueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.NumericValue) { - return mergeFrom((com.google.analytics.data.v1beta.NumericValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.NumericValue other) { - if (other == com.google.analytics.data.v1beta.NumericValue.getDefaultInstance()) return this; - switch (other.getOneValueCase()) { - case INT64_VALUE: - { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case ONEVALUE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.NumericValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.NumericValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public Builder clearOneValue() { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * - * @return Whether the int64Value field is set. - */ - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - * - * - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * - * @return The int64Value. - */ - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - /** - * - * - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * - * @param value The int64Value to set. - * @return This builder for chaining. - */ - public Builder setInt64Value(long value) { - oneValueCase_ = 1; - oneValue_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * - * @return This builder for chaining. - */ - public Builder clearInt64Value() { - if (oneValueCase_ == 1) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Double value
-     * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - * - * - *
-     * Double value
-     * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - /** - * - * - *
-     * Double value
-     * 
- * - * double double_value = 2; - * - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - oneValueCase_ = 2; - oneValue_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Double value
-     * 
- * - * double double_value = 2; - * - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (oneValueCase_ == 2) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.NumericValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.NumericValue) - private static final com.google.analytics.data.v1beta.NumericValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.NumericValue(); - } - - public static com.google.analytics.data.v1beta.NumericValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.NumericValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValueOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValueOrBuilder.java deleted file mode 100644 index 2fc074c4..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValueOrBuilder.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface NumericValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.NumericValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return Whether the int64Value field is set. - */ - boolean hasInt64Value(); - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return The int64Value. - */ - long getInt64Value(); - - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - double getDoubleValue(); - - public com.google.analytics.data.v1beta.NumericValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderBy.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderBy.java deleted file mode 100644 index e7d417c4..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderBy.java +++ /dev/null @@ -1,5533 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The sort options.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy} - */ -public final class OrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.OrderBy) - OrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderBy.newBuilder() to construct. - private OrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OrderBy() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private OrderBy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder subBuilder = null; - if (oneOrderByCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_) - .toBuilder(); - } - oneOrderBy_ = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_); - oneOrderBy_ = subBuilder.buildPartial(); - } - oneOrderByCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder subBuilder = null; - if (oneOrderByCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_) - .toBuilder(); - } - oneOrderBy_ = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_); - oneOrderBy_ = subBuilder.buildPartial(); - } - oneOrderByCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder subBuilder = null; - if (oneOrderByCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_) - .toBuilder(); - } - oneOrderBy_ = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_); - oneOrderBy_ = subBuilder.buildPartial(); - } - oneOrderByCase_ = 3; - break; - } - case 32: - { - desc_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.class, - com.google.analytics.data.v1beta.OrderBy.Builder.class); - } - - public interface MetricOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.OrderBy.MetricOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString getMetricNameBytes(); - } - /** - * - * - *
-   * Sorts by metric values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.MetricOrderBy} - */ - public static final class MetricOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.OrderBy.MetricOrderBy) - MetricOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricOrderBy.newBuilder() to construct. - private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricOrderBy() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricOrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MetricOrderBy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - metricName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.class, - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.OrderBy.MetricOrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy other = - (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) obj; - - if (!getMetricName().equals(other.getMetricName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Sorts by metric values.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.MetricOrderBy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.OrderBy.MetricOrderBy) - com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.class, - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy build() { - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy buildPartial() { - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy result = - new com.google.analytics.data.v1beta.OrderBy.MetricOrderBy(this); - result.metricName_ = metricName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) { - return mergeFrom((com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy.MetricOrderBy other) { - if (other == com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance()) - return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object metricName_ = ""; - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = 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.analytics.data.v1beta.OrderBy.MetricOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.OrderBy.MetricOrderBy) - private static final com.google.analytics.data.v1beta.OrderBy.MetricOrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.OrderBy.MetricOrderBy(); - } - - public static com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricOrderBy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DimensionOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.OrderBy.DimensionOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString getDimensionNameBytes(); - - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * @return The enum numeric value on the wire for orderType. - */ - int getOrderTypeValue(); - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * @return The orderType. - */ - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType getOrderType(); - } - /** - * - * - *
-   * Sorts by dimension values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.DimensionOrderBy} - */ - public static final class DimensionOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.OrderBy.DimensionOrderBy) - DimensionOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionOrderBy.newBuilder() to construct. - private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionOrderBy() { - dimensionName_ = ""; - orderType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionOrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DimensionOrderBy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - dimensionName_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - orderType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.class, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder.class); - } - - /** - * - * - *
-     * Rule to order the string dimension values by.
-     * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType} - */ - public enum OrderType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - ORDER_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - ALPHANUMERIC(1), - /** - * - * - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - CASE_INSENSITIVE_ALPHANUMERIC(2), - /** - * - * - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - NUMERIC(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - public static final int ALPHANUMERIC_VALUE = 1; - /** - * - * - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; - /** - * - * - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - public static final int NUMERIC_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 OrderType 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 OrderType forNumber(int value) { - switch (value) { - case 0: - return ORDER_TYPE_UNSPECIFIED; - case 1: - return ALPHANUMERIC; - case 2: - return CASE_INSENSITIVE_ALPHANUMERIC; - case 3: - return NUMERIC; - 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 OrderType findValueByNumber(int number) { - return OrderType.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.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final OrderType[] VALUES = values(); - - public static OrderType 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 OrderType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType) - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object dimensionName_; - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_TYPE_FIELD_NUMBER = 2; - private int orderType_; - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override - public int getOrderTypeValue() { - return orderType_; - } - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType getOrderType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType result = - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType.valueOf(orderType_); - return result == null - ? com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (orderType_ - != com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType - .ORDER_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, orderType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - if (orderType_ - != com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType - .ORDER_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, orderType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy other = - (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) obj; - - if (!getDimensionName().equals(other.getDimensionName())) return false; - if (orderType_ != other.orderType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + orderType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Sorts by dimension values.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.DimensionOrderBy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.OrderBy.DimensionOrderBy) - com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.class, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dimensionName_ = ""; - - orderType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy build() { - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy buildPartial() { - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy result = - new com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy(this); - result.dimensionName_ = dimensionName_; - result.orderType_ = orderType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) { - return mergeFrom((com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy other) { - if (other == com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance()) - return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - if (other.orderType_ != 0) { - setOrderTypeValue(other.getOrderTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object dimensionName_ = ""; - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - - dimensionName_ = getDefaultInstance().getDimensionName(); - onChanged(); - return this; - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionName_ = value; - onChanged(); - return this; - } - - private int orderType_ = 0; - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override - public int getOrderTypeValue() { - return orderType_; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @param value The enum numeric value on the wire for orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderTypeValue(int value) { - - orderType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType getOrderType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType result = - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType.valueOf(orderType_); - return result == null - ? com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @param value The orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderType( - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType value) { - if (value == null) { - throw new NullPointerException(); - } - - orderType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearOrderType() { - - orderType_ = 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.analytics.data.v1beta.OrderBy.DimensionOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.OrderBy.DimensionOrderBy) - private static final com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy(); - } - - public static com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionOrderBy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PivotOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.OrderBy.PivotOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * In the response to order by, order rows by this column. Must be a metric
-     * name from the request.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - * - * - *
-     * In the response to order by, order rows by this column. Must be a metric
-     * name from the request.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString getMetricNameBytes(); - - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - java.util.List - getPivotSelectionsList(); - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection getPivotSelections( - int index); - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - int getPivotSelectionsCount(); - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - java.util.List< - ? extends com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder> - getPivotSelectionsOrBuilderList(); - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder - getPivotSelectionsOrBuilder(int index); - } - /** - * - * - *
-   * Sorts by a pivot column group.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.PivotOrderBy} - */ - public static final class PivotOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.OrderBy.PivotOrderBy) - PivotOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use PivotOrderBy.newBuilder() to construct. - private PivotOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PivotOrderBy() { - metricName_ = ""; - pivotSelections_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PivotOrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PivotOrderBy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - metricName_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pivotSelections_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection>(); - mutable_bitField0_ |= 0x00000001; - } - pivotSelections_.add( - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - .parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pivotSelections_ = java.util.Collections.unmodifiableList(pivotSelections_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.class, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder.class); - } - - public interface PivotSelectionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Must be a dimension name from the request.
-       * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - * - * - *
-       * Must be a dimension name from the request.
-       * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString getDimensionNameBytes(); - - /** - * - * - *
-       * Order by only when the named dimension is this value.
-       * 
- * - * string dimension_value = 2; - * - * @return The dimensionValue. - */ - java.lang.String getDimensionValue(); - /** - * - * - *
-       * Order by only when the named dimension is this value.
-       * 
- * - * string dimension_value = 2; - * - * @return The bytes for dimensionValue. - */ - com.google.protobuf.ByteString getDimensionValueBytes(); - } - /** - * - * - *
-     * A pair of dimension names and values. Rows with this dimension pivot pair
-     * are ordered by the metric's value.
-     * For example if pivots = {{"browser", "Chrome"}} and
-     * metric_name = "Sessions",
-     * then the rows will be sorted based on Sessions in Chrome.
-     *     ---------|----------|----------------|----------|----------------
-     *              |  Chrome  |    Chrome      |  Safari  |     Safari
-     *     ---------|----------|----------------|----------|----------------
-     *      Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions
-     *     ---------|----------|----------------|----------|----------------
-     *         US   |    2     |       2        |     3    |        1
-     *     ---------|----------|----------------|----------|----------------
-     *       Canada |    3     |       1        |     4    |        1
-     *     ---------|----------|----------------|----------|----------------
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection} - */ - public static final class PivotSelection extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - PivotSelectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use PivotSelection.newBuilder() to construct. - private PivotSelection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PivotSelection() { - dimensionName_ = ""; - dimensionValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PivotSelection(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PivotSelection( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - dimensionName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - dimensionValue_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.class, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object dimensionName_; - /** - * - * - *
-       * Must be a dimension name from the request.
-       * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - * - * - *
-       * Must be a dimension name from the request.
-       * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSION_VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object dimensionValue_; - /** - * - * - *
-       * Order by only when the named dimension is this value.
-       * 
- * - * string dimension_value = 2; - * - * @return The dimensionValue. - */ - @java.lang.Override - public java.lang.String getDimensionValue() { - java.lang.Object ref = dimensionValue_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionValue_ = s; - return s; - } - } - /** - * - * - *
-       * Order by only when the named dimension is this value.
-       * 
- * - * string dimension_value = 2; - * - * @return The bytes for dimensionValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionValueBytes() { - java.lang.Object ref = dimensionValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimensionValue_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimensionValue_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection other = - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) obj; - - if (!getDimensionName().equals(other.getDimensionName())) return false; - if (!getDimensionValue().equals(other.getDimensionValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (37 * hash) + DIMENSION_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * A pair of dimension names and values. Rows with this dimension pivot pair
-       * are ordered by the metric's value.
-       * For example if pivots = {{"browser", "Chrome"}} and
-       * metric_name = "Sessions",
-       * then the rows will be sorted based on Sessions in Chrome.
-       *     ---------|----------|----------------|----------|----------------
-       *              |  Chrome  |    Chrome      |  Safari  |     Safari
-       *     ---------|----------|----------------|----------|----------------
-       *      Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions
-       *     ---------|----------|----------------|----------|----------------
-       *         US   |    2     |       2        |     3    |        1
-       *     ---------|----------|----------------|----------|----------------
-       *       Canada |    3     |       1        |     4    |        1
-       *     ---------|----------|----------------|----------|----------------
-       * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.class, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - .class); - } - - // Construct using - // com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dimensionName_ = ""; - - dimensionValue_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection build() { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection buildPartial() { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection result = - new com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection(this); - result.dimensionName_ = dimensionName_; - result.dimensionValue_ = dimensionValue_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) { - return mergeFrom( - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection other) { - if (other - == com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - .getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - if (!other.getDimensionValue().isEmpty()) { - dimensionValue_ = other.dimensionValue_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object dimensionName_ = ""; - /** - * - * - *
-         * Must be a dimension name from the request.
-         * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Must be a dimension name from the request.
-         * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Must be a dimension name from the request.
-         * 
- * - * string dimension_name = 1; - * - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * Must be a dimension name from the request.
-         * 
- * - * string dimension_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - - dimensionName_ = getDefaultInstance().getDimensionName(); - onChanged(); - return this; - } - /** - * - * - *
-         * Must be a dimension name from the request.
-         * 
- * - * string dimension_name = 1; - * - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionName_ = value; - onChanged(); - return this; - } - - private java.lang.Object dimensionValue_ = ""; - /** - * - * - *
-         * Order by only when the named dimension is this value.
-         * 
- * - * string dimension_value = 2; - * - * @return The dimensionValue. - */ - public java.lang.String getDimensionValue() { - java.lang.Object ref = dimensionValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Order by only when the named dimension is this value.
-         * 
- * - * string dimension_value = 2; - * - * @return The bytes for dimensionValue. - */ - public com.google.protobuf.ByteString getDimensionValueBytes() { - java.lang.Object ref = dimensionValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Order by only when the named dimension is this value.
-         * 
- * - * string dimension_value = 2; - * - * @param value The dimensionValue to set. - * @return This builder for chaining. - */ - public Builder setDimensionValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionValue_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * Order by only when the named dimension is this value.
-         * 
- * - * string dimension_value = 2; - * - * @return This builder for chaining. - */ - public Builder clearDimensionValue() { - - dimensionValue_ = getDefaultInstance().getDimensionValue(); - onChanged(); - return this; - } - /** - * - * - *
-         * Order by only when the named dimension is this value.
-         * 
- * - * string dimension_value = 2; - * - * @param value The bytes for dimensionValue to set. - * @return This builder for chaining. - */ - public Builder setDimensionValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionValue_ = 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.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - private static final com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection(); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PivotSelection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotSelection(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; - /** - * - * - *
-     * In the response to order by, order rows by this column. Must be a metric
-     * name from the request.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - * - * - *
-     * In the response to order by, order rows by this column. Must be a metric
-     * name from the request.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PIVOT_SELECTIONS_FIELD_NUMBER = 2; - private java.util.List - pivotSelections_; - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public java.util.List - getPivotSelectionsList() { - return pivotSelections_; - } - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder> - getPivotSelectionsOrBuilderList() { - return pivotSelections_; - } - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public int getPivotSelectionsCount() { - return pivotSelections_.size(); - } - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection getPivotSelections( - int index) { - return pivotSelections_.get(index); - } - /** - * - * - *
-     * Used to select a dimension name and value pivot. If multiple pivot
-     * selections are given, the sort occurs on rows where all pivot selection
-     * dimension name and value pairs match the row's dimension name and value
-     * pair.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder - getPivotSelectionsOrBuilder(int index) { - return pivotSelections_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - for (int i = 0; i < pivotSelections_.size(); i++) { - output.writeMessage(2, pivotSelections_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - for (int i = 0; i < pivotSelections_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, pivotSelections_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.OrderBy.PivotOrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy other = - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) obj; - - if (!getMetricName().equals(other.getMetricName())) return false; - if (!getPivotSelectionsList().equals(other.getPivotSelectionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - if (getPivotSelectionsCount() > 0) { - hash = (37 * hash) + PIVOT_SELECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getPivotSelectionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Sorts by a pivot column group.
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy.PivotOrderBy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.OrderBy.PivotOrderBy) - com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.class, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotSelectionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - metricName_ = ""; - - if (pivotSelectionsBuilder_ == null) { - pivotSelections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pivotSelectionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy build() { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy buildPartial() { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy result = - new com.google.analytics.data.v1beta.OrderBy.PivotOrderBy(this); - int from_bitField0_ = bitField0_; - result.metricName_ = metricName_; - if (pivotSelectionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pivotSelections_ = java.util.Collections.unmodifiableList(pivotSelections_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pivotSelections_ = pivotSelections_; - } else { - result.pivotSelections_ = pivotSelectionsBuilder_.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.analytics.data.v1beta.OrderBy.PivotOrderBy) { - return mergeFrom((com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy.PivotOrderBy other) { - if (other == com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance()) - return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); - } - if (pivotSelectionsBuilder_ == null) { - if (!other.pivotSelections_.isEmpty()) { - if (pivotSelections_.isEmpty()) { - pivotSelections_ = other.pivotSelections_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePivotSelectionsIsMutable(); - pivotSelections_.addAll(other.pivotSelections_); - } - onChanged(); - } - } else { - if (!other.pivotSelections_.isEmpty()) { - if (pivotSelectionsBuilder_.isEmpty()) { - pivotSelectionsBuilder_.dispose(); - pivotSelectionsBuilder_ = null; - pivotSelections_ = other.pivotSelections_; - bitField0_ = (bitField0_ & ~0x00000001); - pivotSelectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPivotSelectionsFieldBuilder() - : null; - } else { - pivotSelectionsBuilder_.addAllMessages(other.pivotSelections_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - * - * - *
-       * In the response to order by, order rows by this column. Must be a metric
-       * name from the request.
-       * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * In the response to order by, order rows by this column. Must be a metric
-       * name from the request.
-       * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * In the response to order by, order rows by this column. Must be a metric
-       * name from the request.
-       * 
- * - * string metric_name = 1; - * - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * In the response to order by, order rows by this column. Must be a metric
-       * name from the request.
-       * 
- * - * string metric_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * - * - *
-       * In the response to order by, order rows by this column. Must be a metric
-       * name from the request.
-       * 
- * - * string metric_name = 1; - * - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = value; - onChanged(); - return this; - } - - private java.util.List - pivotSelections_ = java.util.Collections.emptyList(); - - private void ensurePivotSelectionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pivotSelections_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection>( - pivotSelections_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder> - pivotSelectionsBuilder_; - - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public java.util.List - getPivotSelectionsList() { - if (pivotSelectionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pivotSelections_); - } else { - return pivotSelectionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public int getPivotSelectionsCount() { - if (pivotSelectionsBuilder_ == null) { - return pivotSelections_.size(); - } else { - return pivotSelectionsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - getPivotSelections(int index) { - if (pivotSelectionsBuilder_ == null) { - return pivotSelections_.get(index); - } else { - return pivotSelectionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder setPivotSelections( - int index, com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection value) { - if (pivotSelectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotSelectionsIsMutable(); - pivotSelections_.set(index, value); - onChanged(); - } else { - pivotSelectionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder setPivotSelections( - int index, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - builderForValue) { - if (pivotSelectionsBuilder_ == null) { - ensurePivotSelectionsIsMutable(); - pivotSelections_.set(index, builderForValue.build()); - onChanged(); - } else { - pivotSelectionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection value) { - if (pivotSelectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotSelectionsIsMutable(); - pivotSelections_.add(value); - onChanged(); - } else { - pivotSelectionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - int index, com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection value) { - if (pivotSelectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotSelectionsIsMutable(); - pivotSelections_.add(index, value); - onChanged(); - } else { - pivotSelectionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - builderForValue) { - if (pivotSelectionsBuilder_ == null) { - ensurePivotSelectionsIsMutable(); - pivotSelections_.add(builderForValue.build()); - onChanged(); - } else { - pivotSelectionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - int index, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - builderForValue) { - if (pivotSelectionsBuilder_ == null) { - ensurePivotSelectionsIsMutable(); - pivotSelections_.add(index, builderForValue.build()); - onChanged(); - } else { - pivotSelectionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addAllPivotSelections( - java.lang.Iterable< - ? extends com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection> - values) { - if (pivotSelectionsBuilder_ == null) { - ensurePivotSelectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pivotSelections_); - onChanged(); - } else { - pivotSelectionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder clearPivotSelections() { - if (pivotSelectionsBuilder_ == null) { - pivotSelections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pivotSelectionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder removePivotSelections(int index) { - if (pivotSelectionsBuilder_ == null) { - ensurePivotSelectionsIsMutable(); - pivotSelections_.remove(index); - onChanged(); - } else { - pivotSelectionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - getPivotSelectionsBuilder(int index) { - return getPivotSelectionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder - getPivotSelectionsOrBuilder(int index) { - if (pivotSelectionsBuilder_ == null) { - return pivotSelections_.get(index); - } else { - return pivotSelectionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public java.util.List< - ? extends - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder> - getPivotSelectionsOrBuilderList() { - if (pivotSelectionsBuilder_ != null) { - return pivotSelectionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pivotSelections_); - } - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - addPivotSelectionsBuilder() { - return getPivotSelectionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - .getDefaultInstance()); - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder - addPivotSelectionsBuilder(int index) { - return getPivotSelectionsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - .getDefaultInstance()); - } - /** - * - * - *
-       * Used to select a dimension name and value pivot. If multiple pivot
-       * selections are given, the sort occurs on rows where all pivot selection
-       * dimension name and value pairs match the row's dimension name and value
-       * pair.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public java.util.List< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder> - getPivotSelectionsBuilderList() { - return getPivotSelectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder> - getPivotSelectionsFieldBuilder() { - if (pivotSelectionsBuilder_ == null) { - pivotSelectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.Builder, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder>( - pivotSelections_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pivotSelections_ = null; - } - return pivotSelectionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.OrderBy.PivotOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.OrderBy.PivotOrderBy) - private static final com.google.analytics.data.v1beta.OrderBy.PivotOrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.OrderBy.PivotOrderBy(); - } - - public static com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PivotOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotOrderBy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int oneOrderByCase_ = 0; - private java.lang.Object oneOrderBy_; - - public enum OneOrderByCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - METRIC(1), - DIMENSION(2), - PIVOT(3), - ONEORDERBY_NOT_SET(0); - private final int value; - - private OneOrderByCase(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 OneOrderByCase valueOf(int value) { - return forNumber(value); - } - - public static OneOrderByCase forNumber(int value) { - switch (value) { - case 1: - return METRIC; - case 2: - return DIMENSION; - case 3: - return PIVOT; - case 0: - return ONEORDERBY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneOrderByCase getOneOrderByCase() { - return OneOrderByCase.forNumber(oneOrderByCase_); - } - - public static final int METRIC_FIELD_NUMBER = 1; - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getMetric() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDimension() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - - public static final int PIVOT_FIELD_NUMBER = 3; - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * - * @return Whether the pivot field is set. - */ - @java.lang.Override - public boolean hasPivot() { - return oneOrderByCase_ == 3; - } - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * - * @return The pivot. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot() { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder() { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } - - public static final int DESC_FIELD_NUMBER = 4; - private boolean desc_; - /** - * - * - *
-   * If true, sorts by descending order.
-   * 
- * - * bool desc = 4; - * - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneOrderByCase_ == 1) { - output.writeMessage(1, (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - output.writeMessage( - 2, (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_); - } - if (desc_ != false) { - output.writeBool(4, desc_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneOrderByCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_); - } - if (desc_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, desc_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.OrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.OrderBy other = (com.google.analytics.data.v1beta.OrderBy) obj; - - if (getDesc() != other.getDesc()) return false; - if (!getOneOrderByCase().equals(other.getOneOrderByCase())) return false; - switch (oneOrderByCase_) { - case 1: - if (!getMetric().equals(other.getMetric())) return false; - break; - case 2: - if (!getDimension().equals(other.getDimension())) return false; - break; - case 3: - if (!getPivot().equals(other.getPivot())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesc()); - switch (oneOrderByCase_) { - case 1: - hash = (37 * hash) + METRIC_FIELD_NUMBER; - hash = (53 * hash) + getMetric().hashCode(); - break; - case 2: - hash = (37 * hash) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getDimension().hashCode(); - break; - case 3: - hash = (37 * hash) + PIVOT_FIELD_NUMBER; - hash = (53 * hash) + getPivot().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.OrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.OrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 sort options.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.OrderBy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.OrderBy) - com.google.analytics.data.v1beta.OrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.OrderBy.class, - com.google.analytics.data.v1beta.OrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.OrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - desc_ = false; - - oneOrderByCase_ = 0; - oneOrderBy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_OrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.OrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy build() { - com.google.analytics.data.v1beta.OrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy buildPartial() { - com.google.analytics.data.v1beta.OrderBy result = - new com.google.analytics.data.v1beta.OrderBy(this); - if (oneOrderByCase_ == 1) { - if (metricBuilder_ == null) { - result.oneOrderBy_ = oneOrderBy_; - } else { - result.oneOrderBy_ = metricBuilder_.build(); - } - } - if (oneOrderByCase_ == 2) { - if (dimensionBuilder_ == null) { - result.oneOrderBy_ = oneOrderBy_; - } else { - result.oneOrderBy_ = dimensionBuilder_.build(); - } - } - if (oneOrderByCase_ == 3) { - if (pivotBuilder_ == null) { - result.oneOrderBy_ = oneOrderBy_; - } else { - result.oneOrderBy_ = pivotBuilder_.build(); - } - } - result.desc_ = desc_; - result.oneOrderByCase_ = oneOrderByCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.OrderBy) { - return mergeFrom((com.google.analytics.data.v1beta.OrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy other) { - if (other == com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()) return this; - if (other.getDesc() != false) { - setDesc(other.getDesc()); - } - switch (other.getOneOrderByCase()) { - case METRIC: - { - mergeMetric(other.getMetric()); - break; - } - case DIMENSION: - { - mergeDimension(other.getDimension()); - break; - } - case PIVOT: - { - mergePivot(other.getPivot()); - break; - } - case ONEORDERBY_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.OrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.OrderBy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int oneOrderByCase_ = 0; - private java.lang.Object oneOrderBy_; - - public OneOrderByCase getOneOrderByCase() { - return OneOrderByCase.forNumber(oneOrderByCase_); - } - - public Builder clearOneOrderBy() { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy, - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder> - metricBuilder_; - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 1) { - return metricBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric(com.google.analytics.data.v1beta.OrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - metricBuilder_.setMessage(value); - } - oneOrderByCase_ = 1; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric( - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder builderForValue) { - if (metricBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - metricBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 1; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - public Builder mergeMetric(com.google.analytics.data.v1beta.OrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1 - && oneOrderBy_ - != com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.newBuilder( - (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_) - .mergeFrom(value) - .buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 1) { - metricBuilder_.mergeFrom(value); - } - metricBuilder_.setMessage(value); - } - oneOrderByCase_ = 1; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - public Builder clearMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - metricBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - public com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder getMetricBuilder() { - return getMetricFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { - return metricBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy, - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder> - getMetricFieldBuilder() { - if (metricBuilder_ == null) { - if (!(oneOrderByCase_ == 1)) { - oneOrderBy_ = com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.getDefaultInstance(); - } - metricBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy, - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder>( - (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 1; - onChanged(); - ; - return metricBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder> - dimensionBuilder_; - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 2) { - return dimensionBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension(com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - dimensionBuilder_.setMessage(value); - } - oneOrderByCase_ = 2; - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension( - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder builderForValue) { - if (dimensionBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - dimensionBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 2; - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder mergeDimension(com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2 - && oneOrderBy_ - != com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.newBuilder( - (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_) - .mergeFrom(value) - .buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 2) { - dimensionBuilder_.mergeFrom(value); - } - dimensionBuilder_.setMessage(value); - } - oneOrderByCase_ = 2; - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder clearDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - dimensionBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder getDimensionBuilder() { - return getDimensionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder() { - if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { - return dimensionBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder> - getDimensionFieldBuilder() { - if (dimensionBuilder_ == null) { - if (!(oneOrderByCase_ == 2)) { - oneOrderBy_ = - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - dimensionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder>( - (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 2; - onChanged(); - ; - return dimensionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder> - pivotBuilder_; - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * - * @return Whether the pivot field is set. - */ - @java.lang.Override - public boolean hasPivot() { - return oneOrderByCase_ == 3; - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * - * @return The pivot. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot() { - if (pivotBuilder_ == null) { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 3) { - return pivotBuilder_.getMessage(); - } - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder setPivot(com.google.analytics.data.v1beta.OrderBy.PivotOrderBy value) { - if (pivotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - pivotBuilder_.setMessage(value); - } - oneOrderByCase_ = 3; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder setPivot( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder builderForValue) { - if (pivotBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - pivotBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 3; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder mergePivot(com.google.analytics.data.v1beta.OrderBy.PivotOrderBy value) { - if (pivotBuilder_ == null) { - if (oneOrderByCase_ == 3 - && oneOrderBy_ - != com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.newBuilder( - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_) - .mergeFrom(value) - .buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 3) { - pivotBuilder_.mergeFrom(value); - } - pivotBuilder_.setMessage(value); - } - oneOrderByCase_ = 3; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder clearPivot() { - if (pivotBuilder_ == null) { - if (oneOrderByCase_ == 3) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 3) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - pivotBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - public com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder getPivotBuilder() { - return getPivotFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder() { - if ((oneOrderByCase_ == 3) && (pivotBuilder_ != null)) { - return pivotBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder> - getPivotFieldBuilder() { - if (pivotBuilder_ == null) { - if (!(oneOrderByCase_ == 3)) { - oneOrderBy_ = com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.getDefaultInstance(); - } - pivotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy, - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.Builder, - com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder>( - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 3; - onChanged(); - ; - return pivotBuilder_; - } - - private boolean desc_; - /** - * - * - *
-     * If true, sorts by descending order.
-     * 
- * - * bool desc = 4; - * - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - /** - * - * - *
-     * If true, sorts by descending order.
-     * 
- * - * bool desc = 4; - * - * @param value The desc to set. - * @return This builder for chaining. - */ - public Builder setDesc(boolean value) { - - desc_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, sorts by descending order.
-     * 
- * - * bool desc = 4; - * - * @return This builder for chaining. - */ - public Builder clearDesc() { - - desc_ = 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.analytics.data.v1beta.OrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.OrderBy) - private static final com.google.analytics.data.v1beta.OrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.OrderBy(); - } - - public static com.google.analytics.data.v1beta.OrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderBy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderByOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderByOrBuilder.java deleted file mode 100644 index 23050292..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderByOrBuilder.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface OrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.OrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - boolean hasMetric(); - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getMetric(); - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - */ - com.google.analytics.data.v1beta.OrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); - - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - boolean hasDimension(); - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDimension(); - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - */ - com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder(); - - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * - * @return Whether the pivot field is set. - */ - boolean hasPivot(); - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * - * @return The pivot. - */ - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot(); - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - */ - com.google.analytics.data.v1beta.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder(); - - /** - * - * - *
-   * If true, sorts by descending order.
-   * 
- * - * bool desc = 4; - * - * @return The desc. - */ - boolean getDesc(); - - public com.google.analytics.data.v1beta.OrderBy.OneOrderByCase getOneOrderByCase(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Pivot.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Pivot.java deleted file mode 100644 index d3a2e672..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Pivot.java +++ /dev/null @@ -1,1978 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Describes the visible dimension columns and rows in the report response.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Pivot} - */ -public final class Pivot extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Pivot) - PivotOrBuilder { - private static final long serialVersionUID = 0L; - // Use Pivot.newBuilder() to construct. - private Pivot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Pivot() { - fieldNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - orderBys_ = java.util.Collections.emptyList(); - metricAggregations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Pivot(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Pivot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fieldNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fieldNames_.add(s); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - orderBys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - orderBys_.add( - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry)); - break; - } - case 24: - { - offset_ = input.readInt64(); - break; - } - case 32: - { - limit_ = input.readInt64(); - break; - } - case 40: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metricAggregations_.add(rawValue); - break; - } - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metricAggregations_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fieldNames_ = fieldNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Pivot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Pivot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Pivot.class, - com.google.analytics.data.v1beta.Pivot.Builder.class); - } - - public static final int FIELD_NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList fieldNames_; - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @return A list containing the fieldNames. - */ - public com.google.protobuf.ProtocolStringList getFieldNamesList() { - return fieldNames_; - } - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @return The count of fieldNames. - */ - public int getFieldNamesCount() { - return fieldNames_.size(); - } - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @param index The index of the element to return. - * @return The fieldNames at the given index. - */ - public java.lang.String getFieldNames(int index) { - return fieldNames_.get(index); - } - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the fieldNames at the given index. - */ - public com.google.protobuf.ByteString getFieldNamesBytes(int index) { - return fieldNames_.getByteString(index); - } - - public static final int ORDER_BYS_FIELD_NUMBER = 2; - private java.util.List orderBys_; - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - @java.lang.Override - public java.util.List getOrderBysList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - @java.lang.Override - public java.util.List - getOrderBysOrBuilderList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - @java.lang.Override - public int getOrderBysCount() { - return orderBys_.size(); - } - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index) { - return orderBys_.get(index); - } - - public static final int OFFSET_FIELD_NUMBER = 3; - private long offset_; - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0.
-   * 
- * - * int64 offset = 3; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 4; - private long limit_; - /** - * - * - *
-   * The number of unique combinations of dimension values to return in this
-   * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for
-   * single pivot requests.
-   * The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
-   * must not exceed 100,000. For example, a two pivot request with `limit:
-   * 1000` in each pivot will fail because the product is `1,000,000`.
-   * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int METRIC_AGGREGATIONS_FIELD_NUMBER = 5; - private java.util.List metricAggregations_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation> - metricAggregations_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>() { - public com.google.analytics.data.v1beta.MetricAggregation convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricAggregation result = - com.google.analytics.data.v1beta.MetricAggregation.valueOf(from); - return result == null - ? com.google.analytics.data.v1beta.MetricAggregation.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @return A list containing the metricAggregations. - */ - @java.lang.Override - public java.util.List - getMetricAggregationsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @return The count of metricAggregations. - */ - @java.lang.Override - public int getMetricAggregationsCount() { - return metricAggregations_.size(); - } - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index) { - return metricAggregations_converter_.convert(metricAggregations_.get(index)); - } - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - @java.lang.Override - public java.util.List getMetricAggregationsValueList() { - return metricAggregations_; - } - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - @java.lang.Override - public int getMetricAggregationsValue(int index) { - return metricAggregations_.get(index); - } - - private int metricAggregationsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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(); - for (int i = 0; i < fieldNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldNames_.getRaw(i)); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(2, orderBys_.get(i)); - } - if (offset_ != 0L) { - output.writeInt64(3, offset_); - } - if (limit_ != 0L) { - output.writeInt64(4, limit_); - } - if (getMetricAggregationsList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(metricAggregationsMemoizedSerializedSize); - } - for (int i = 0; i < metricAggregations_.size(); i++) { - output.writeEnumNoTag(metricAggregations_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < fieldNames_.size(); i++) { - dataSize += computeStringSizeNoTag(fieldNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldNamesList().size(); - } - for (int i = 0; i < orderBys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, orderBys_.get(i)); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, offset_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, limit_); - } - { - int dataSize = 0; - for (int i = 0; i < metricAggregations_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(metricAggregations_.get(i)); - } - size += dataSize; - if (!getMetricAggregationsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - metricAggregationsMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Pivot)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Pivot other = (com.google.analytics.data.v1beta.Pivot) obj; - - if (!getFieldNamesList().equals(other.getFieldNamesList())) return false; - if (!getOrderBysList().equals(other.getOrderBysList())) return false; - if (getOffset() != other.getOffset()) return false; - if (getLimit() != other.getLimit()) return false; - if (!metricAggregations_.equals(other.metricAggregations_)) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFieldNamesCount() > 0) { - hash = (37 * hash) + FIELD_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getFieldNamesList().hashCode(); - } - if (getOrderBysCount() > 0) { - hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; - hash = (53 * hash) + getOrderBysList().hashCode(); - } - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - if (getMetricAggregationsCount() > 0) { - hash = (37 * hash) + METRIC_AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + metricAggregations_.hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Pivot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Pivot parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Pivot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Pivot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Describes the visible dimension columns and rows in the report response.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Pivot} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Pivot) - com.google.analytics.data.v1beta.PivotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Pivot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Pivot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Pivot.class, - com.google.analytics.data.v1beta.Pivot.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Pivot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getOrderBysFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fieldNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - orderBysBuilder_.clear(); - } - offset_ = 0L; - - limit_ = 0L; - - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Pivot_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Pivot getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Pivot.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Pivot build() { - com.google.analytics.data.v1beta.Pivot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Pivot buildPartial() { - com.google.analytics.data.v1beta.Pivot result = - new com.google.analytics.data.v1beta.Pivot(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - fieldNames_ = fieldNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fieldNames_ = fieldNames_; - if (orderBysBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.orderBys_ = orderBys_; - } else { - result.orderBys_ = orderBysBuilder_.build(); - } - result.offset_ = offset_; - result.limit_ = limit_; - if (((bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metricAggregations_ = metricAggregations_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.Pivot) { - return mergeFrom((com.google.analytics.data.v1beta.Pivot) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Pivot other) { - if (other == com.google.analytics.data.v1beta.Pivot.getDefaultInstance()) return this; - if (!other.fieldNames_.isEmpty()) { - if (fieldNames_.isEmpty()) { - fieldNames_ = other.fieldNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldNamesIsMutable(); - fieldNames_.addAll(other.fieldNames_); - } - onChanged(); - } - if (orderBysBuilder_ == null) { - if (!other.orderBys_.isEmpty()) { - if (orderBys_.isEmpty()) { - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOrderBysIsMutable(); - orderBys_.addAll(other.orderBys_); - } - onChanged(); - } - } else { - if (!other.orderBys_.isEmpty()) { - if (orderBysBuilder_.isEmpty()) { - orderBysBuilder_.dispose(); - orderBysBuilder_ = null; - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000002); - orderBysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrderBysFieldBuilder() - : null; - } else { - orderBysBuilder_.addAllMessages(other.orderBys_); - } - } - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (!other.metricAggregations_.isEmpty()) { - if (metricAggregations_.isEmpty()) { - metricAggregations_ = other.metricAggregations_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricAggregationsIsMutable(); - metricAggregations_.addAll(other.metricAggregations_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Pivot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Pivot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList fieldNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFieldNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fieldNames_ = new com.google.protobuf.LazyStringArrayList(fieldNames_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @return A list containing the fieldNames. - */ - public com.google.protobuf.ProtocolStringList getFieldNamesList() { - return fieldNames_.getUnmodifiableView(); - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @return The count of fieldNames. - */ - public int getFieldNamesCount() { - return fieldNames_.size(); - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @param index The index of the element to return. - * @return The fieldNames at the given index. - */ - public java.lang.String getFieldNames(int index) { - return fieldNames_.get(index); - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the fieldNames at the given index. - */ - public com.google.protobuf.ByteString getFieldNamesBytes(int index) { - return fieldNames_.getByteString(index); - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @param index The index to set the value at. - * @param value The fieldNames to set. - * @return This builder for chaining. - */ - public Builder setFieldNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldNamesIsMutable(); - fieldNames_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @param value The fieldNames to add. - * @return This builder for chaining. - */ - public Builder addFieldNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldNamesIsMutable(); - fieldNames_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @param values The fieldNames to add. - * @return This builder for chaining. - */ - public Builder addAllFieldNames(java.lang.Iterable values) { - ensureFieldNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldNames_); - onChanged(); - return this; - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldNames() { - fieldNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Dimension names for visible columns in the report response. Including
-     * "dateRange" produces a date range column; for each row in the response,
-     * dimension values in the date range column will indicate the corresponding
-     * date range from the request.
-     * 
- * - * repeated string field_names = 1; - * - * @param value The bytes of the fieldNames to add. - * @return This builder for chaining. - */ - public Builder addFieldNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFieldNamesIsMutable(); - fieldNames_.add(value); - onChanged(); - return this; - } - - private java.util.List orderBys_ = - java.util.Collections.emptyList(); - - private void ensureOrderBysIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - orderBys_ = new java.util.ArrayList(orderBys_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder> - orderBysBuilder_; - - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public java.util.List getOrderBysList() { - if (orderBysBuilder_ == null) { - return java.util.Collections.unmodifiableList(orderBys_); - } else { - return orderBysBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public int getOrderBysCount() { - if (orderBysBuilder_ == null) { - return orderBys_.size(); - } else { - return orderBysBuilder_.getCount(); - } - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder setOrderBys(int index, com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.set(index, value); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder setOrderBys( - int index, com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.set(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(value); - onChanged(); - } else { - orderBysBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder addOrderBys(int index, com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(index, value); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder addOrderBys( - int index, com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder addAllOrderBys( - java.lang.Iterable values) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); - onChanged(); - } else { - orderBysBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder clearOrderBys() { - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - orderBysBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public Builder removeOrderBys(int index) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.remove(index); - onChanged(); - } else { - orderBysBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder getOrderBysBuilder(int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public java.util.List - getOrderBysOrBuilderList() { - if (orderBysBuilder_ != null) { - return orderBysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orderBys_); - } - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-     * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-     * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-     * Dimensions specified in these OrderBys must be a subset of
-     * Pivot.field_names.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder>( - orderBys_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - orderBys_ = null; - } - return orderBysBuilder_; - } - - private long offset_; - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * 
- * - * int64 offset = 3; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * 
- * - * int64 offset = 3; - * - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * 
- * - * int64 offset = 3; - * - * @return This builder for chaining. - */ - public Builder clearOffset() { - - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_; - /** - * - * - *
-     * The number of unique combinations of dimension values to return in this
-     * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for
-     * single pivot requests.
-     * The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
-     * must not exceed 100,000. For example, a two pivot request with `limit:
-     * 1000` in each pivot will fail because the product is `1,000,000`.
-     * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of unique combinations of dimension values to return in this
-     * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for
-     * single pivot requests.
-     * The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
-     * must not exceed 100,000. For example, a two pivot request with `limit:
-     * 1000` in each pivot will fail because the product is `1,000,000`.
-     * 
- * - * int64 limit = 4; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of unique combinations of dimension values to return in this
-     * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for
-     * single pivot requests.
-     * The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
-     * must not exceed 100,000. For example, a two pivot request with `limit:
-     * 1000` in each pivot will fail because the product is `1,000,000`.
-     * 
- * - * int64 limit = 4; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private java.util.List metricAggregations_ = - java.util.Collections.emptyList(); - - private void ensureMetricAggregationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = new java.util.ArrayList(metricAggregations_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @return A list containing the metricAggregations. - */ - public java.util.List - getMetricAggregationsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @return The count of metricAggregations. - */ - public int getMetricAggregationsCount() { - return metricAggregations_.size(); - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index) { - return metricAggregations_converter_.convert(metricAggregations_.get(index)); - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param index The index to set the value at. - * @param value The metricAggregations to set. - * @return This builder for chaining. - */ - public Builder setMetricAggregations( - int index, com.google.analytics.data.v1beta.MetricAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricAggregationsIsMutable(); - metricAggregations_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param value The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregations(com.google.analytics.data.v1beta.MetricAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param values The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addAllMetricAggregations( - java.lang.Iterable values) { - ensureMetricAggregationsIsMutable(); - for (com.google.analytics.data.v1beta.MetricAggregation value : values) { - metricAggregations_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricAggregations() { - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - public java.util.List getMetricAggregationsValueList() { - return java.util.Collections.unmodifiableList(metricAggregations_); - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - public int getMetricAggregationsValue(int index) { - return metricAggregations_.get(index); - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - * @return This builder for chaining. - */ - public Builder setMetricAggregationsValue(int index, int value) { - ensureMetricAggregationsIsMutable(); - metricAggregations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param value The enum numeric value on the wire for metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregationsValue(int value) { - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * - * @param values The enum numeric values on the wire for metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addAllMetricAggregationsValue(java.lang.Iterable values) { - ensureMetricAggregationsIsMutable(); - for (int value : values) { - metricAggregations_.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.analytics.data.v1beta.Pivot) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Pivot) - private static final com.google.analytics.data.v1beta.Pivot DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Pivot(); - } - - public static com.google.analytics.data.v1beta.Pivot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pivot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Pivot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Pivot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeader.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeader.java deleted file mode 100644 index c6c5b916..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeader.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Summarizes dimension values from a row for this pivot.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.PivotDimensionHeader} - */ -public final class PivotDimensionHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.PivotDimensionHeader) - PivotDimensionHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use PivotDimensionHeader.newBuilder() to construct. - private PivotDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PivotDimensionHeader() { - dimensionValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PivotDimensionHeader(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PivotDimensionHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensionValues_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionValue.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.PivotDimensionHeader.class, - com.google.analytics.data.v1beta.PivotDimensionHeader.Builder.class); - } - - public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; - private java.util.List dimensionValues_; - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List getDimensionValuesList() { - return dimensionValues_; - } - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List - getDimensionValuesOrBuilderList() { - return dimensionValues_; - } - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValue getDimensionValues(int index) { - return dimensionValues_.get(index); - } - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - return dimensionValues_.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 < dimensionValues_.size(); i++) { - output.writeMessage(1, dimensionValues_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.PivotDimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.PivotDimensionHeader other = - (com.google.analytics.data.v1beta.PivotDimensionHeader) obj; - - if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionValuesCount() > 0) { - hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.PivotDimensionHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Summarizes dimension values from a row for this pivot.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.PivotDimensionHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.PivotDimensionHeader) - com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.PivotDimensionHeader.class, - com.google.analytics.data.v1beta.PivotDimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.PivotDimensionHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionValuesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionValuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotDimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotDimensionHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.PivotDimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotDimensionHeader build() { - com.google.analytics.data.v1beta.PivotDimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotDimensionHeader buildPartial() { - com.google.analytics.data.v1beta.PivotDimensionHeader result = - new com.google.analytics.data.v1beta.PivotDimensionHeader(this); - int from_bitField0_ = bitField0_; - if (dimensionValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionValues_ = dimensionValues_; - } else { - result.dimensionValues_ = dimensionValuesBuilder_.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.analytics.data.v1beta.PivotDimensionHeader) { - return mergeFrom((com.google.analytics.data.v1beta.PivotDimensionHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.PivotDimensionHeader other) { - if (other == com.google.analytics.data.v1beta.PivotDimensionHeader.getDefaultInstance()) - return this; - if (dimensionValuesBuilder_ == null) { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValues_.isEmpty()) { - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionValuesIsMutable(); - dimensionValues_.addAll(other.dimensionValues_); - } - onChanged(); - } - } else { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValuesBuilder_.isEmpty()) { - dimensionValuesBuilder_.dispose(); - dimensionValuesBuilder_ = null; - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionValuesFieldBuilder() - : null; - } else { - dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.PivotDimensionHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.PivotDimensionHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List dimensionValues_ = - java.util.Collections.emptyList(); - - private void ensureDimensionValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = - new java.util.ArrayList( - dimensionValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionValue, - com.google.analytics.data.v1beta.DimensionValue.Builder, - com.google.analytics.data.v1beta.DimensionValueOrBuilder> - dimensionValuesBuilder_; - - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesList() { - if (dimensionValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionValues_); - } else { - return dimensionValuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public int getDimensionValuesCount() { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.size(); - } else { - return dimensionValuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue getDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.data.v1beta.DimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.data.v1beta.DimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addAllDimensionValues( - java.lang.Iterable values) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); - onChanged(); - } else { - dimensionValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder clearDimensionValues() { - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionValuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder removeDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.remove(index); - onChanged(); - } else { - dimensionValuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue.Builder getDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesOrBuilderList() { - if (dimensionValuesBuilder_ != null) { - return dimensionValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionValues_); - } - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionValue.getDefaultInstance()); - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DimensionValue.getDefaultInstance()); - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionValue, - com.google.analytics.data.v1beta.DimensionValue.Builder, - com.google.analytics.data.v1beta.DimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionValue, - com.google.analytics.data.v1beta.DimensionValue.Builder, - com.google.analytics.data.v1beta.DimensionValueOrBuilder>( - dimensionValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionValues_ = null; - } - return dimensionValuesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.PivotDimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.PivotDimensionHeader) - private static final com.google.analytics.data.v1beta.PivotDimensionHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.PivotDimensionHeader(); - } - - public static com.google.analytics.data.v1beta.PivotDimensionHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PivotDimensionHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotDimensionHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotDimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeaderOrBuilder.java deleted file mode 100644 index 82e101b6..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeaderOrBuilder.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface PivotDimensionHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.PivotDimensionHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - java.util.List getDimensionValuesList(); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1beta.DimensionValue getDimensionValues(int index); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - int getDimensionValuesCount(); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesOrBuilderList(); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1beta.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeader.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeader.java deleted file mode 100644 index 6391c40b..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeader.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Dimensions' values in a single pivot.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.PivotHeader} - */ -public final class PivotHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.PivotHeader) - PivotHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use PivotHeader.newBuilder() to construct. - private PivotHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PivotHeader() { - pivotDimensionHeaders_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PivotHeader(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PivotHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pivotDimensionHeaders_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.PivotDimensionHeader>(); - mutable_bitField0_ |= 0x00000001; - } - pivotDimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.PivotDimensionHeader.parser(), - extensionRegistry)); - break; - } - case 16: - { - rowCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pivotDimensionHeaders_ = java.util.Collections.unmodifiableList(pivotDimensionHeaders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.PivotHeader.class, - com.google.analytics.data.v1beta.PivotHeader.Builder.class); - } - - public static final int PIVOT_DIMENSION_HEADERS_FIELD_NUMBER = 1; - private java.util.List - pivotDimensionHeaders_; - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public java.util.List - getPivotDimensionHeadersList() { - return pivotDimensionHeaders_; - } - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public java.util.List - getPivotDimensionHeadersOrBuilderList() { - return pivotDimensionHeaders_; - } - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public int getPivotDimensionHeadersCount() { - return pivotDimensionHeaders_.size(); - } - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PivotDimensionHeader getPivotDimensionHeaders(int index) { - return pivotDimensionHeaders_.get(index); - } - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder - getPivotDimensionHeadersOrBuilder(int index) { - return pivotDimensionHeaders_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 2; - private int rowCount_; - /** - * - * - *
-   * The cardinality of the pivot. The total number of rows for this pivot's
-   * fields regardless of how the parameters `offset` and `limit` are specified
-   * in the request.
-   * 
- * - * int32 row_count = 2; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < pivotDimensionHeaders_.size(); i++) { - output.writeMessage(1, pivotDimensionHeaders_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(2, rowCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pivotDimensionHeaders_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, pivotDimensionHeaders_.get(i)); - } - if (rowCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, rowCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.PivotHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.PivotHeader other = - (com.google.analytics.data.v1beta.PivotHeader) obj; - - if (!getPivotDimensionHeadersList().equals(other.getPivotDimensionHeadersList())) return false; - if (getRowCount() != other.getRowCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPivotDimensionHeadersCount() > 0) { - hash = (37 * hash) + PIVOT_DIMENSION_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getPivotDimensionHeadersList().hashCode(); - } - hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRowCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PivotHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.PivotHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Dimensions' values in a single pivot.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.PivotHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.PivotHeader) - com.google.analytics.data.v1beta.PivotHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.PivotHeader.class, - com.google.analytics.data.v1beta.PivotHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.PivotHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotDimensionHeadersFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (pivotDimensionHeadersBuilder_ == null) { - pivotDimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pivotDimensionHeadersBuilder_.clear(); - } - rowCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PivotHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.PivotHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotHeader build() { - com.google.analytics.data.v1beta.PivotHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotHeader buildPartial() { - com.google.analytics.data.v1beta.PivotHeader result = - new com.google.analytics.data.v1beta.PivotHeader(this); - int from_bitField0_ = bitField0_; - if (pivotDimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pivotDimensionHeaders_ = java.util.Collections.unmodifiableList(pivotDimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pivotDimensionHeaders_ = pivotDimensionHeaders_; - } else { - result.pivotDimensionHeaders_ = pivotDimensionHeadersBuilder_.build(); - } - result.rowCount_ = rowCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.PivotHeader) { - return mergeFrom((com.google.analytics.data.v1beta.PivotHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.PivotHeader other) { - if (other == com.google.analytics.data.v1beta.PivotHeader.getDefaultInstance()) return this; - if (pivotDimensionHeadersBuilder_ == null) { - if (!other.pivotDimensionHeaders_.isEmpty()) { - if (pivotDimensionHeaders_.isEmpty()) { - pivotDimensionHeaders_ = other.pivotDimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.addAll(other.pivotDimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.pivotDimensionHeaders_.isEmpty()) { - if (pivotDimensionHeadersBuilder_.isEmpty()) { - pivotDimensionHeadersBuilder_.dispose(); - pivotDimensionHeadersBuilder_ = null; - pivotDimensionHeaders_ = other.pivotDimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - pivotDimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPivotDimensionHeadersFieldBuilder() - : null; - } else { - pivotDimensionHeadersBuilder_.addAllMessages(other.pivotDimensionHeaders_); - } - } - } - if (other.getRowCount() != 0) { - setRowCount(other.getRowCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.PivotHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.PivotHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - pivotDimensionHeaders_ = java.util.Collections.emptyList(); - - private void ensurePivotDimensionHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pivotDimensionHeaders_ = - new java.util.ArrayList( - pivotDimensionHeaders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.PivotDimensionHeader, - com.google.analytics.data.v1beta.PivotDimensionHeader.Builder, - com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder> - pivotDimensionHeadersBuilder_; - - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public java.util.List - getPivotDimensionHeadersList() { - if (pivotDimensionHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(pivotDimensionHeaders_); - } else { - return pivotDimensionHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public int getPivotDimensionHeadersCount() { - if (pivotDimensionHeadersBuilder_ == null) { - return pivotDimensionHeaders_.size(); - } else { - return pivotDimensionHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1beta.PivotDimensionHeader getPivotDimensionHeaders( - int index) { - if (pivotDimensionHeadersBuilder_ == null) { - return pivotDimensionHeaders_.get(index); - } else { - return pivotDimensionHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder setPivotDimensionHeaders( - int index, com.google.analytics.data.v1beta.PivotDimensionHeader value) { - if (pivotDimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.set(index, value); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder setPivotDimensionHeaders( - int index, com.google.analytics.data.v1beta.PivotDimensionHeader.Builder builderForValue) { - if (pivotDimensionHeadersBuilder_ == null) { - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - com.google.analytics.data.v1beta.PivotDimensionHeader value) { - if (pivotDimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.add(value); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - int index, com.google.analytics.data.v1beta.PivotDimensionHeader value) { - if (pivotDimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.add(index, value); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - com.google.analytics.data.v1beta.PivotDimensionHeader.Builder builderForValue) { - if (pivotDimensionHeadersBuilder_ == null) { - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - int index, com.google.analytics.data.v1beta.PivotDimensionHeader.Builder builderForValue) { - if (pivotDimensionHeadersBuilder_ == null) { - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addAllPivotDimensionHeaders( - java.lang.Iterable - values) { - if (pivotDimensionHeadersBuilder_ == null) { - ensurePivotDimensionHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pivotDimensionHeaders_); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder clearPivotDimensionHeaders() { - if (pivotDimensionHeadersBuilder_ == null) { - pivotDimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder removePivotDimensionHeaders(int index) { - if (pivotDimensionHeadersBuilder_ == null) { - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.remove(index); - onChanged(); - } else { - pivotDimensionHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1beta.PivotDimensionHeader.Builder - getPivotDimensionHeadersBuilder(int index) { - return getPivotDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder - getPivotDimensionHeadersOrBuilder(int index) { - if (pivotDimensionHeadersBuilder_ == null) { - return pivotDimensionHeaders_.get(index); - } else { - return pivotDimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public java.util.List - getPivotDimensionHeadersOrBuilderList() { - if (pivotDimensionHeadersBuilder_ != null) { - return pivotDimensionHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pivotDimensionHeaders_); - } - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1beta.PivotDimensionHeader.Builder - addPivotDimensionHeadersBuilder() { - return getPivotDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.PivotDimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1beta.PivotDimensionHeader.Builder - addPivotDimensionHeadersBuilder(int index) { - return getPivotDimensionHeadersFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1beta.PivotDimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public java.util.List - getPivotDimensionHeadersBuilderList() { - return getPivotDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.PivotDimensionHeader, - com.google.analytics.data.v1beta.PivotDimensionHeader.Builder, - com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder> - getPivotDimensionHeadersFieldBuilder() { - if (pivotDimensionHeadersBuilder_ == null) { - pivotDimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.PivotDimensionHeader, - com.google.analytics.data.v1beta.PivotDimensionHeader.Builder, - com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder>( - pivotDimensionHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pivotDimensionHeaders_ = null; - } - return pivotDimensionHeadersBuilder_; - } - - private int rowCount_; - /** - * - * - *
-     * The cardinality of the pivot. The total number of rows for this pivot's
-     * fields regardless of how the parameters `offset` and `limit` are specified
-     * in the request.
-     * 
- * - * int32 row_count = 2; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - /** - * - * - *
-     * The cardinality of the pivot. The total number of rows for this pivot's
-     * fields regardless of how the parameters `offset` and `limit` are specified
-     * in the request.
-     * 
- * - * int32 row_count = 2; - * - * @param value The rowCount to set. - * @return This builder for chaining. - */ - public Builder setRowCount(int value) { - - rowCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The cardinality of the pivot. The total number of rows for this pivot's
-     * fields regardless of how the parameters `offset` and `limit` are specified
-     * in the request.
-     * 
- * - * int32 row_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearRowCount() { - - rowCount_ = 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.analytics.data.v1beta.PivotHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.PivotHeader) - private static final com.google.analytics.data.v1beta.PivotHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.PivotHeader(); - } - - public static com.google.analytics.data.v1beta.PivotHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PivotHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PivotHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeaderOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeaderOrBuilder.java deleted file mode 100644 index add1a37e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeaderOrBuilder.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/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface PivotHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.PivotHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - java.util.List - getPivotDimensionHeadersList(); - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - com.google.analytics.data.v1beta.PivotDimensionHeader getPivotDimensionHeaders(int index); - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - int getPivotDimensionHeadersCount(); - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - java.util.List - getPivotDimensionHeadersOrBuilderList(); - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder getPivotDimensionHeadersOrBuilder( - int index); - - /** - * - * - *
-   * The cardinality of the pivot. The total number of rows for this pivot's
-   * fields regardless of how the parameters `offset` and `limit` are specified
-   * in the request.
-   * 
- * - * int32 row_count = 2; - * - * @return The rowCount. - */ - int getRowCount(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotOrBuilder.java deleted file mode 100644 index 3b8b5514..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotOrBuilder.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface PivotOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Pivot) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @return A list containing the fieldNames. - */ - java.util.List getFieldNamesList(); - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @return The count of fieldNames. - */ - int getFieldNamesCount(); - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @param index The index of the element to return. - * @return The fieldNames at the given index. - */ - java.lang.String getFieldNames(int index); - /** - * - * - *
-   * Dimension names for visible columns in the report response. Including
-   * "dateRange" produces a date range column; for each row in the response,
-   * dimension values in the date range column will indicate the corresponding
-   * date range from the request.
-   * 
- * - * repeated string field_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the fieldNames at the given index. - */ - com.google.protobuf.ByteString getFieldNamesBytes(int index); - - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - java.util.List getOrderBysList(); - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - com.google.analytics.data.v1beta.OrderBy getOrderBys(int index); - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - int getOrderBysCount(); - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - * - * - *
-   * Specifies how dimensions are ordered in the pivot. In the first Pivot, the
-   * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
-   * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
-   * Dimensions specified in these OrderBys must be a subset of
-   * Pivot.field_names.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index); - - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0.
-   * 
- * - * int64 offset = 3; - * - * @return The offset. - */ - long getOffset(); - - /** - * - * - *
-   * The number of unique combinations of dimension values to return in this
-   * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for
-   * single pivot requests.
-   * The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
-   * must not exceed 100,000. For example, a two pivot request with `limit:
-   * 1000` in each pivot will fail because the product is `1,000,000`.
-   * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - long getLimit(); - - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @return A list containing the metricAggregations. - */ - java.util.List getMetricAggregationsList(); - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @return The count of metricAggregations. - */ - int getMetricAggregationsCount(); - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index); - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - java.util.List getMetricAggregationsValueList(); - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - int getMetricAggregationsValue(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuota.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuota.java deleted file mode 100644 index 5836d2c1..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuota.java +++ /dev/null @@ -1,2034 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Current state of all quotas for this Analytics Property. If any quota for a
- * property is exhausted, all requests to that property will return Resource
- * Exhausted errors.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.PropertyQuota} - */ -public final class PropertyQuota extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.PropertyQuota) - PropertyQuotaOrBuilder { - private static final long serialVersionUID = 0L; - // Use PropertyQuota.newBuilder() to construct. - private PropertyQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PropertyQuota() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PropertyQuota(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PropertyQuota( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.QuotaStatus.Builder subBuilder = null; - if (tokensPerDay_ != null) { - subBuilder = tokensPerDay_.toBuilder(); - } - tokensPerDay_ = - input.readMessage( - com.google.analytics.data.v1beta.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tokensPerDay_); - tokensPerDay_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1beta.QuotaStatus.Builder subBuilder = null; - if (tokensPerHour_ != null) { - subBuilder = tokensPerHour_.toBuilder(); - } - tokensPerHour_ = - input.readMessage( - com.google.analytics.data.v1beta.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tokensPerHour_); - tokensPerHour_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.analytics.data.v1beta.QuotaStatus.Builder subBuilder = null; - if (concurrentRequests_ != null) { - subBuilder = concurrentRequests_.toBuilder(); - } - concurrentRequests_ = - input.readMessage( - com.google.analytics.data.v1beta.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(concurrentRequests_); - concurrentRequests_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.analytics.data.v1beta.QuotaStatus.Builder subBuilder = null; - if (serverErrorsPerProjectPerHour_ != null) { - subBuilder = serverErrorsPerProjectPerHour_.toBuilder(); - } - serverErrorsPerProjectPerHour_ = - input.readMessage( - com.google.analytics.data.v1beta.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverErrorsPerProjectPerHour_); - serverErrorsPerProjectPerHour_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.analytics.data.v1beta.QuotaStatus.Builder subBuilder = null; - if (potentiallyThresholdedRequestsPerHour_ != null) { - subBuilder = potentiallyThresholdedRequestsPerHour_.toBuilder(); - } - potentiallyThresholdedRequestsPerHour_ = - input.readMessage( - com.google.analytics.data.v1beta.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(potentiallyThresholdedRequestsPerHour_); - potentiallyThresholdedRequestsPerHour_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PropertyQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.PropertyQuota.class, - com.google.analytics.data.v1beta.PropertyQuota.Builder.class); - } - - public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1beta.QuotaStatus tokensPerDay_; - /** - * - * - *
-   * Standard Analytics Properties can use up to 25,000 tokens per day;
-   * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-   * consume fewer than 10 tokens.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * - * @return Whether the tokensPerDay field is set. - */ - @java.lang.Override - public boolean hasTokensPerDay() { - return tokensPerDay_ != null; - } - /** - * - * - *
-   * Standard Analytics Properties can use up to 25,000 tokens per day;
-   * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-   * consume fewer than 10 tokens.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getTokensPerDay() { - return tokensPerDay_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerDay_; - } - /** - * - * - *
-   * Standard Analytics Properties can use up to 25,000 tokens per day;
-   * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-   * consume fewer than 10 tokens.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { - return getTokensPerDay(); - } - - public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; - private com.google.analytics.data.v1beta.QuotaStatus tokensPerHour_; - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per hour;
-   * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-   * consumes a single number of tokens, and that number is deducted from both
-   * the hourly and daily quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * - * @return Whether the tokensPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerHour() { - return tokensPerHour_ != null; - } - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per hour;
-   * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-   * consumes a single number of tokens, and that number is deducted from both
-   * the hourly and daily quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getTokensPerHour() { - return tokensPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerHour_; - } - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per hour;
-   * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-   * consumes a single number of tokens, and that number is deducted from both
-   * the hourly and daily quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { - return getTokensPerHour(); - } - - public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; - private com.google.analytics.data.v1beta.QuotaStatus concurrentRequests_; - /** - * - * - *
-   * Standard Analytics Properties can send up to 10 concurrent requests;
-   * Analytics 360 Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * - * @return Whether the concurrentRequests field is set. - */ - @java.lang.Override - public boolean hasConcurrentRequests() { - return concurrentRequests_ != null; - } - /** - * - * - *
-   * Standard Analytics Properties can send up to 10 concurrent requests;
-   * Analytics 360 Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getConcurrentRequests() { - return concurrentRequests_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : concurrentRequests_; - } - /** - * - * - *
-   * Standard Analytics Properties can send up to 10 concurrent requests;
-   * Analytics 360 Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - return getConcurrentRequests(); - } - - public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; - private com.google.analytics.data.v1beta.QuotaStatus serverErrorsPerProjectPerHour_; - /** - * - * - *
-   * Standard Analytics Properties and cloud project pairs can have up to 10
-   * server errors per hour; Analytics 360 Properties and cloud project pairs
-   * can have up to 50 server errors per hour.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ != null; - } - /** - * - * - *
-   * Standard Analytics Properties and cloud project pairs can have up to 10
-   * server errors per hour; Analytics 360 Properties and cloud project pairs
-   * can have up to 50 server errors per hour.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return The serverErrorsPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : serverErrorsPerProjectPerHour_; - } - /** - * - * - *
-   * Standard Analytics Properties and cloud project pairs can have up to 10
-   * server errors per hour; Analytics 360 Properties and cloud project pairs
-   * can have up to 50 server errors per hour.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - return getServerErrorsPerProjectPerHour(); - } - - public static final int POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER = 5; - private com.google.analytics.data.v1beta.QuotaStatus potentiallyThresholdedRequestsPerHour_; - /** - * - * - *
-   * Analytics Properties can send up to 120 requests with potentially
-   * thresholded dimensions per hour. In a batch request, each report request
-   * is individually counted for this quota if the request contains potentially
-   * thresholded dimensions.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return Whether the potentiallyThresholdedRequestsPerHour field is set. - */ - @java.lang.Override - public boolean hasPotentiallyThresholdedRequestsPerHour() { - return potentiallyThresholdedRequestsPerHour_ != null; - } - /** - * - * - *
-   * Analytics Properties can send up to 120 requests with potentially
-   * thresholded dimensions per hour. In a batch request, each report request
-   * is individually counted for this quota if the request contains potentially
-   * thresholded dimensions.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return The potentiallyThresholdedRequestsPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getPotentiallyThresholdedRequestsPerHour() { - return potentiallyThresholdedRequestsPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : potentiallyThresholdedRequestsPerHour_; - } - /** - * - * - *
-   * Analytics Properties can send up to 120 requests with potentially
-   * thresholded dimensions per hour. In a batch request, each report request
-   * is individually counted for this quota if the request contains potentially
-   * thresholded dimensions.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getPotentiallyThresholdedRequestsPerHourOrBuilder() { - return getPotentiallyThresholdedRequestsPerHour(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (tokensPerDay_ != null) { - output.writeMessage(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - output.writeMessage(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - output.writeMessage(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - output.writeMessage(4, getServerErrorsPerProjectPerHour()); - } - if (potentiallyThresholdedRequestsPerHour_ != null) { - output.writeMessage(5, getPotentiallyThresholdedRequestsPerHour()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tokensPerDay_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getServerErrorsPerProjectPerHour()); - } - if (potentiallyThresholdedRequestsPerHour_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getPotentiallyThresholdedRequestsPerHour()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.PropertyQuota)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.PropertyQuota other = - (com.google.analytics.data.v1beta.PropertyQuota) obj; - - if (hasTokensPerDay() != other.hasTokensPerDay()) return false; - if (hasTokensPerDay()) { - if (!getTokensPerDay().equals(other.getTokensPerDay())) return false; - } - if (hasTokensPerHour() != other.hasTokensPerHour()) return false; - if (hasTokensPerHour()) { - if (!getTokensPerHour().equals(other.getTokensPerHour())) return false; - } - if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false; - if (hasConcurrentRequests()) { - if (!getConcurrentRequests().equals(other.getConcurrentRequests())) return false; - } - if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour()) - return false; - if (hasServerErrorsPerProjectPerHour()) { - if (!getServerErrorsPerProjectPerHour().equals(other.getServerErrorsPerProjectPerHour())) - return false; - } - if (hasPotentiallyThresholdedRequestsPerHour() - != other.hasPotentiallyThresholdedRequestsPerHour()) return false; - if (hasPotentiallyThresholdedRequestsPerHour()) { - if (!getPotentiallyThresholdedRequestsPerHour() - .equals(other.getPotentiallyThresholdedRequestsPerHour())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTokensPerDay()) { - hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerDay().hashCode(); - } - if (hasTokensPerHour()) { - hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerHour().hashCode(); - } - if (hasConcurrentRequests()) { - hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getConcurrentRequests().hashCode(); - } - if (hasServerErrorsPerProjectPerHour()) { - hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode(); - } - if (hasPotentiallyThresholdedRequestsPerHour()) { - hash = (37 * hash) + POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getPotentiallyThresholdedRequestsPerHour().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.PropertyQuota parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.PropertyQuota prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Current state of all quotas for this Analytics Property. If any quota for a
-   * property is exhausted, all requests to that property will return Resource
-   * Exhausted errors.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.PropertyQuota} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.PropertyQuota) - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PropertyQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.PropertyQuota.class, - com.google.analytics.data.v1beta.PropertyQuota.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.PropertyQuota.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = null; - } else { - tokensPerDay_ = null; - tokensPerDayBuilder_ = null; - } - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = null; - } else { - tokensPerHour_ = null; - tokensPerHourBuilder_ = null; - } - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = null; - } else { - concurrentRequests_ = null; - concurrentRequestsBuilder_ = null; - } - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = null; - } else { - serverErrorsPerProjectPerHour_ = null; - serverErrorsPerProjectPerHourBuilder_ = null; - } - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - potentiallyThresholdedRequestsPerHour_ = null; - } else { - potentiallyThresholdedRequestsPerHour_ = null; - potentiallyThresholdedRequestsPerHourBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota build() { - com.google.analytics.data.v1beta.PropertyQuota result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota buildPartial() { - com.google.analytics.data.v1beta.PropertyQuota result = - new com.google.analytics.data.v1beta.PropertyQuota(this); - if (tokensPerDayBuilder_ == null) { - result.tokensPerDay_ = tokensPerDay_; - } else { - result.tokensPerDay_ = tokensPerDayBuilder_.build(); - } - if (tokensPerHourBuilder_ == null) { - result.tokensPerHour_ = tokensPerHour_; - } else { - result.tokensPerHour_ = tokensPerHourBuilder_.build(); - } - if (concurrentRequestsBuilder_ == null) { - result.concurrentRequests_ = concurrentRequests_; - } else { - result.concurrentRequests_ = concurrentRequestsBuilder_.build(); - } - if (serverErrorsPerProjectPerHourBuilder_ == null) { - result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHour_; - } else { - result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHourBuilder_.build(); - } - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - result.potentiallyThresholdedRequestsPerHour_ = potentiallyThresholdedRequestsPerHour_; - } else { - result.potentiallyThresholdedRequestsPerHour_ = - potentiallyThresholdedRequestsPerHourBuilder_.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.analytics.data.v1beta.PropertyQuota) { - return mergeFrom((com.google.analytics.data.v1beta.PropertyQuota) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.PropertyQuota other) { - if (other == com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance()) return this; - if (other.hasTokensPerDay()) { - mergeTokensPerDay(other.getTokensPerDay()); - } - if (other.hasTokensPerHour()) { - mergeTokensPerHour(other.getTokensPerHour()); - } - if (other.hasConcurrentRequests()) { - mergeConcurrentRequests(other.getConcurrentRequests()); - } - if (other.hasServerErrorsPerProjectPerHour()) { - mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); - } - if (other.hasPotentiallyThresholdedRequestsPerHour()) { - mergePotentiallyThresholdedRequestsPerHour( - other.getPotentiallyThresholdedRequestsPerHour()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.PropertyQuota parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.PropertyQuota) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.data.v1beta.QuotaStatus tokensPerDay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - tokensPerDayBuilder_; - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * - * @return Whether the tokensPerDay field is set. - */ - public boolean hasTokensPerDay() { - return tokensPerDayBuilder_ != null || tokensPerDay_ != null; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - public com.google.analytics.data.v1beta.QuotaStatus getTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - return tokensPerDay_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerDay_; - } else { - return tokensPerDayBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay(com.google.analytics.data.v1beta.QuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerDay_ = value; - onChanged(); - } else { - tokensPerDayBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay( - com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = builderForValue.build(); - onChanged(); - } else { - tokensPerDayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - public Builder mergeTokensPerDay(com.google.analytics.data.v1beta.QuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (tokensPerDay_ != null) { - tokensPerDay_ = - com.google.analytics.data.v1beta.QuotaStatus.newBuilder(tokensPerDay_) - .mergeFrom(value) - .buildPartial(); - } else { - tokensPerDay_ = value; - } - onChanged(); - } else { - tokensPerDayBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - public Builder clearTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = null; - onChanged(); - } else { - tokensPerDay_ = null; - tokensPerDayBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.data.v1beta.QuotaStatus.Builder getTokensPerDayBuilder() { - - onChanged(); - return getTokensPerDayFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { - if (tokensPerDayBuilder_ != null) { - return tokensPerDayBuilder_.getMessageOrBuilder(); - } else { - return tokensPerDay_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerDay_; - } - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 25,000 tokens per day;
-     * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-     * consume fewer than 10 tokens.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - getTokensPerDayFieldBuilder() { - if (tokensPerDayBuilder_ == null) { - tokensPerDayBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( - getTokensPerDay(), getParentForChildren(), isClean()); - tokensPerDay_ = null; - } - return tokensPerDayBuilder_; - } - - private com.google.analytics.data.v1beta.QuotaStatus tokensPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - tokensPerHourBuilder_; - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * - * @return Whether the tokensPerHour field is set. - */ - public boolean hasTokensPerHour() { - return tokensPerHourBuilder_ != null || tokensPerHour_ != null; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - public com.google.analytics.data.v1beta.QuotaStatus getTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - return tokensPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerHour_; - } else { - return tokensPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour(com.google.analytics.data.v1beta.QuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerHour_ = value; - onChanged(); - } else { - tokensPerHourBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour( - com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = builderForValue.build(); - onChanged(); - } else { - tokensPerHourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - public Builder mergeTokensPerHour(com.google.analytics.data.v1beta.QuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (tokensPerHour_ != null) { - tokensPerHour_ = - com.google.analytics.data.v1beta.QuotaStatus.newBuilder(tokensPerHour_) - .mergeFrom(value) - .buildPartial(); - } else { - tokensPerHour_ = value; - } - onChanged(); - } else { - tokensPerHourBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - public Builder clearTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = null; - onChanged(); - } else { - tokensPerHour_ = null; - tokensPerHourBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.data.v1beta.QuotaStatus.Builder getTokensPerHourBuilder() { - - onChanged(); - return getTokensPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { - if (tokensPerHourBuilder_ != null) { - return tokensPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerHour_; - } - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per hour;
-     * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-     * consumes a single number of tokens, and that number is deducted from both
-     * the hourly and daily quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - getTokensPerHourFieldBuilder() { - if (tokensPerHourBuilder_ == null) { - tokensPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( - getTokensPerHour(), getParentForChildren(), isClean()); - tokensPerHour_ = null; - } - return tokensPerHourBuilder_; - } - - private com.google.analytics.data.v1beta.QuotaStatus concurrentRequests_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - concurrentRequestsBuilder_; - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * - * @return Whether the concurrentRequests field is set. - */ - public boolean hasConcurrentRequests() { - return concurrentRequestsBuilder_ != null || concurrentRequests_ != null; - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - public com.google.analytics.data.v1beta.QuotaStatus getConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - return concurrentRequests_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : concurrentRequests_; - } else { - return concurrentRequestsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests(com.google.analytics.data.v1beta.QuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - concurrentRequests_ = value; - onChanged(); - } else { - concurrentRequestsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = builderForValue.build(); - onChanged(); - } else { - concurrentRequestsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - public Builder mergeConcurrentRequests(com.google.analytics.data.v1beta.QuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (concurrentRequests_ != null) { - concurrentRequests_ = - com.google.analytics.data.v1beta.QuotaStatus.newBuilder(concurrentRequests_) - .mergeFrom(value) - .buildPartial(); - } else { - concurrentRequests_ = value; - } - onChanged(); - } else { - concurrentRequestsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - public Builder clearConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = null; - onChanged(); - } else { - concurrentRequests_ = null; - concurrentRequestsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.data.v1beta.QuotaStatus.Builder getConcurrentRequestsBuilder() { - - onChanged(); - return getConcurrentRequestsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - if (concurrentRequestsBuilder_ != null) { - return concurrentRequestsBuilder_.getMessageOrBuilder(); - } else { - return concurrentRequests_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : concurrentRequests_; - } - } - /** - * - * - *
-     * Standard Analytics Properties can send up to 10 concurrent requests;
-     * Analytics 360 Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - getConcurrentRequestsFieldBuilder() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequestsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( - getConcurrentRequests(), getParentForChildren(), isClean()); - concurrentRequests_ = null; - } - return concurrentRequestsBuilder_; - } - - private com.google.analytics.data.v1beta.QuotaStatus serverErrorsPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - serverErrorsPerProjectPerHourBuilder_; - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - public boolean hasServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHourBuilder_ != null - || serverErrorsPerProjectPerHour_ != null; - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return The serverErrorsPerProjectPerHour. - */ - public com.google.analytics.data.v1beta.QuotaStatus getServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : serverErrorsPerProjectPerHour_; - } else { - return serverErrorsPerProjectPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.data.v1beta.QuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serverErrorsPerProjectPerHour_ = value; - onChanged(); - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = builderForValue.build(); - onChanged(); - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder mergeServerErrorsPerProjectPerHour( - com.google.analytics.data.v1beta.QuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (serverErrorsPerProjectPerHour_ != null) { - serverErrorsPerProjectPerHour_ = - com.google.analytics.data.v1beta.QuotaStatus.newBuilder( - serverErrorsPerProjectPerHour_) - .mergeFrom(value) - .buildPartial(); - } else { - serverErrorsPerProjectPerHour_ = value; - } - onChanged(); - } else { - serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder clearServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = null; - onChanged(); - } else { - serverErrorsPerProjectPerHour_ = null; - serverErrorsPerProjectPerHourBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.data.v1beta.QuotaStatus.Builder - getServerErrorsPerProjectPerHourBuilder() { - - onChanged(); - return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ != null) { - return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : serverErrorsPerProjectPerHour_; - } - } - /** - * - * - *
-     * Standard Analytics Properties and cloud project pairs can have up to 10
-     * server errors per hour; Analytics 360 Properties and cloud project pairs
-     * can have up to 50 server errors per hour.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - getServerErrorsPerProjectPerHourFieldBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( - getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); - serverErrorsPerProjectPerHour_ = null; - } - return serverErrorsPerProjectPerHourBuilder_; - } - - private com.google.analytics.data.v1beta.QuotaStatus potentiallyThresholdedRequestsPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - potentiallyThresholdedRequestsPerHourBuilder_; - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return Whether the potentiallyThresholdedRequestsPerHour field is set. - */ - public boolean hasPotentiallyThresholdedRequestsPerHour() { - return potentiallyThresholdedRequestsPerHourBuilder_ != null - || potentiallyThresholdedRequestsPerHour_ != null; - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return The potentiallyThresholdedRequestsPerHour. - */ - public com.google.analytics.data.v1beta.QuotaStatus getPotentiallyThresholdedRequestsPerHour() { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - return potentiallyThresholdedRequestsPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : potentiallyThresholdedRequestsPerHour_; - } else { - return potentiallyThresholdedRequestsPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder setPotentiallyThresholdedRequestsPerHour( - com.google.analytics.data.v1beta.QuotaStatus value) { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - potentiallyThresholdedRequestsPerHour_ = value; - onChanged(); - } else { - potentiallyThresholdedRequestsPerHourBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder setPotentiallyThresholdedRequestsPerHour( - com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - potentiallyThresholdedRequestsPerHour_ = builderForValue.build(); - onChanged(); - } else { - potentiallyThresholdedRequestsPerHourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder mergePotentiallyThresholdedRequestsPerHour( - com.google.analytics.data.v1beta.QuotaStatus value) { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - if (potentiallyThresholdedRequestsPerHour_ != null) { - potentiallyThresholdedRequestsPerHour_ = - com.google.analytics.data.v1beta.QuotaStatus.newBuilder( - potentiallyThresholdedRequestsPerHour_) - .mergeFrom(value) - .buildPartial(); - } else { - potentiallyThresholdedRequestsPerHour_ = value; - } - onChanged(); - } else { - potentiallyThresholdedRequestsPerHourBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder clearPotentiallyThresholdedRequestsPerHour() { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - potentiallyThresholdedRequestsPerHour_ = null; - onChanged(); - } else { - potentiallyThresholdedRequestsPerHour_ = null; - potentiallyThresholdedRequestsPerHourBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public com.google.analytics.data.v1beta.QuotaStatus.Builder - getPotentiallyThresholdedRequestsPerHourBuilder() { - - onChanged(); - return getPotentiallyThresholdedRequestsPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getPotentiallyThresholdedRequestsPerHourOrBuilder() { - if (potentiallyThresholdedRequestsPerHourBuilder_ != null) { - return potentiallyThresholdedRequestsPerHourBuilder_.getMessageOrBuilder(); - } else { - return potentiallyThresholdedRequestsPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : potentiallyThresholdedRequestsPerHour_; - } - } - /** - * - * - *
-     * Analytics Properties can send up to 120 requests with potentially
-     * thresholded dimensions per hour. In a batch request, each report request
-     * is individually counted for this quota if the request contains potentially
-     * thresholded dimensions.
-     * 
- * - * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - getPotentiallyThresholdedRequestsPerHourFieldBuilder() { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - potentiallyThresholdedRequestsPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( - getPotentiallyThresholdedRequestsPerHour(), getParentForChildren(), isClean()); - potentiallyThresholdedRequestsPerHour_ = null; - } - return potentiallyThresholdedRequestsPerHourBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.PropertyQuota) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.PropertyQuota) - private static final com.google.analytics.data.v1beta.PropertyQuota DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.PropertyQuota(); - } - - public static com.google.analytics.data.v1beta.PropertyQuota getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertyQuota parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyQuota(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuotaOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuotaOrBuilder.java deleted file mode 100644 index 983f5733..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuotaOrBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface PropertyQuotaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.PropertyQuota) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Standard Analytics Properties can use up to 25,000 tokens per day;
-   * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-   * consume fewer than 10 tokens.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * - * @return Whether the tokensPerDay field is set. - */ - boolean hasTokensPerDay(); - /** - * - * - *
-   * Standard Analytics Properties can use up to 25,000 tokens per day;
-   * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-   * consume fewer than 10 tokens.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - com.google.analytics.data.v1beta.QuotaStatus getTokensPerDay(); - /** - * - * - *
-   * Standard Analytics Properties can use up to 25,000 tokens per day;
-   * Analytics 360 Properties can use 250,000 tokens per day. Most requests
-   * consume fewer than 10 tokens.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerDayOrBuilder(); - - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per hour;
-   * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-   * consumes a single number of tokens, and that number is deducted from both
-   * the hourly and daily quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * - * @return Whether the tokensPerHour field is set. - */ - boolean hasTokensPerHour(); - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per hour;
-   * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-   * consumes a single number of tokens, and that number is deducted from both
-   * the hourly and daily quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - com.google.analytics.data.v1beta.QuotaStatus getTokensPerHour(); - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per hour;
-   * Analytics 360 Properties can use 50,000 tokens per hour. An API request
-   * consumes a single number of tokens, and that number is deducted from both
-   * the hourly and daily quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerHourOrBuilder(); - - /** - * - * - *
-   * Standard Analytics Properties can send up to 10 concurrent requests;
-   * Analytics 360 Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * - * @return Whether the concurrentRequests field is set. - */ - boolean hasConcurrentRequests(); - /** - * - * - *
-   * Standard Analytics Properties can send up to 10 concurrent requests;
-   * Analytics 360 Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - com.google.analytics.data.v1beta.QuotaStatus getConcurrentRequests(); - /** - * - * - *
-   * Standard Analytics Properties can send up to 10 concurrent requests;
-   * Analytics 360 Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - com.google.analytics.data.v1beta.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); - - /** - * - * - *
-   * Standard Analytics Properties and cloud project pairs can have up to 10
-   * server errors per hour; Analytics 360 Properties and cloud project pairs
-   * can have up to 50 server errors per hour.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - boolean hasServerErrorsPerProjectPerHour(); - /** - * - * - *
-   * Standard Analytics Properties and cloud project pairs can have up to 10
-   * server errors per hour; Analytics 360 Properties and cloud project pairs
-   * can have up to 50 server errors per hour.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return The serverErrorsPerProjectPerHour. - */ - com.google.analytics.data.v1beta.QuotaStatus getServerErrorsPerProjectPerHour(); - /** - * - * - *
-   * Standard Analytics Properties and cloud project pairs can have up to 10
-   * server errors per hour; Analytics 360 Properties and cloud project pairs
-   * can have up to 50 server errors per hour.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - */ - com.google.analytics.data.v1beta.QuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder(); - - /** - * - * - *
-   * Analytics Properties can send up to 120 requests with potentially
-   * thresholded dimensions per hour. In a batch request, each report request
-   * is individually counted for this quota if the request contains potentially
-   * thresholded dimensions.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return Whether the potentiallyThresholdedRequestsPerHour field is set. - */ - boolean hasPotentiallyThresholdedRequestsPerHour(); - /** - * - * - *
-   * Analytics Properties can send up to 120 requests with potentially
-   * thresholded dimensions per hour. In a batch request, each report request
-   * is individually counted for this quota if the request contains potentially
-   * thresholded dimensions.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return The potentiallyThresholdedRequestsPerHour. - */ - com.google.analytics.data.v1beta.QuotaStatus getPotentiallyThresholdedRequestsPerHour(); - /** - * - * - *
-   * Analytics Properties can send up to 120 requests with potentially
-   * thresholded dimensions per hour. In a batch request, each report request
-   * is individually counted for this quota if the request contains potentially
-   * thresholded dimensions.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getPotentiallyThresholdedRequestsPerHourOrBuilder(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatus.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatus.java deleted file mode 100644 index 87c4fd23..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatus.java +++ /dev/null @@ -1,634 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Current state for a particular quota group.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.QuotaStatus} - */ -public final class QuotaStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.QuotaStatus) - QuotaStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use QuotaStatus.newBuilder() to construct. - private QuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QuotaStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QuotaStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private QuotaStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - consumed_ = input.readInt32(); - break; - } - case 16: - { - remaining_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_QuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.QuotaStatus.class, - com.google.analytics.data.v1beta.QuotaStatus.Builder.class); - } - - public static final int CONSUMED_FIELD_NUMBER = 1; - private int consumed_; - /** - * - * - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - - public static final int REMAINING_FIELD_NUMBER = 2; - private int remaining_; - /** - * - * - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (consumed_ != 0) { - output.writeInt32(1, consumed_); - } - if (remaining_ != 0) { - output.writeInt32(2, remaining_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consumed_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, consumed_); - } - if (remaining_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, remaining_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.QuotaStatus)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.QuotaStatus other = - (com.google.analytics.data.v1beta.QuotaStatus) obj; - - if (getConsumed() != other.getConsumed()) return false; - if (getRemaining() != other.getRemaining()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + getConsumed(); - hash = (37 * hash) + REMAINING_FIELD_NUMBER; - hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.QuotaStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.QuotaStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Current state for a particular quota group.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.QuotaStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.QuotaStatus) - com.google.analytics.data.v1beta.QuotaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_QuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.QuotaStatus.class, - com.google.analytics.data.v1beta.QuotaStatus.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.QuotaStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - consumed_ = 0; - - remaining_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus build() { - com.google.analytics.data.v1beta.QuotaStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus buildPartial() { - com.google.analytics.data.v1beta.QuotaStatus result = - new com.google.analytics.data.v1beta.QuotaStatus(this); - result.consumed_ = consumed_; - result.remaining_ = remaining_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.QuotaStatus) { - return mergeFrom((com.google.analytics.data.v1beta.QuotaStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.QuotaStatus other) { - if (other == com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance()) return this; - if (other.getConsumed() != 0) { - setConsumed(other.getConsumed()); - } - if (other.getRemaining() != 0) { - setRemaining(other.getRemaining()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.QuotaStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.QuotaStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int consumed_; - /** - * - * - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - /** - * - * - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * - * @param value The consumed to set. - * @return This builder for chaining. - */ - public Builder setConsumed(int value) { - - consumed_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * - * @return This builder for chaining. - */ - public Builder clearConsumed() { - - consumed_ = 0; - onChanged(); - return this; - } - - private int remaining_; - /** - * - * - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - /** - * - * - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * - * @param value The remaining to set. - * @return This builder for chaining. - */ - public Builder setRemaining(int value) { - - remaining_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * - * @return This builder for chaining. - */ - public Builder clearRemaining() { - - remaining_ = 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.analytics.data.v1beta.QuotaStatus) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.QuotaStatus) - private static final com.google.analytics.data.v1beta.QuotaStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.QuotaStatus(); - } - - public static com.google.analytics.data.v1beta.QuotaStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuotaStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuotaStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatusOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatusOrBuilder.java deleted file mode 100644 index e507a751..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatusOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface QuotaStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.QuotaStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * - * @return The consumed. - */ - int getConsumed(); - - /** - * - * - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * - * @return The remaining. - */ - int getRemaining(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java deleted file mode 100644 index 768e8696..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java +++ /dev/null @@ -1,762 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public final class ReportingApiProto { - private ReportingApiProto() {} - - 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_analytics_data_v1beta_DateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_MinuteRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_MinuteRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Dimension_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Dimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Metric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_FilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_FilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_FilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_FilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Filter_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Filter_InListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Filter_NumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_OrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_OrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Pivot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Pivot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_CohortSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_CohortSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Cohort_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Cohort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_CohortsRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_CohortsRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_CohortReportSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_ResponseMetaData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_MetricHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_MetricHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_PivotHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_PivotHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_PivotDimensionHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_PivotDimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_MetricValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_MetricValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_NumericValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_PropertyQuota_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_QuotaStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_MetricMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_DimensionCompatibility_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1beta_MetricCompatibility_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/analytics/data/v1beta/data.prot" - + "o\022\034google.analytics.data.v1beta\"?\n\tDateR" - + "ange\022\022\n\nstart_date\030\001 \001(\t\022\020\n\010end_date\030\002 \001" - + "(\t\022\014\n\004name\030\003 \001(\t\"\203\001\n\013MinuteRange\022\036\n\021star" - + "t_minutes_ago\030\001 \001(\005H\000\210\001\001\022\034\n\017end_minutes_" - + "ago\030\002 \001(\005H\001\210\001\001\022\014\n\004name\030\003 \001(\tB\024\n\022_start_m" - + "inutes_agoB\022\n\020_end_minutes_ago\"j\n\tDimens" - + "ion\022\014\n\004name\030\001 \001(\t\022O\n\024dimension_expressio" - + "n\030\002 \001(\01321.google.analytics.data.v1beta.D" - + "imensionExpression\"\246\003\n\023DimensionExpressi" - + "on\022V\n\nlower_case\030\004 \001(\0132@.google.analytic" - + "s.data.v1beta.DimensionExpression.CaseEx" - + "pressionH\000\022V\n\nupper_case\030\005 \001(\0132@.google." - + "analytics.data.v1beta.DimensionExpressio" - + "n.CaseExpressionH\000\022^\n\013concatenate\030\006 \001(\0132" - + "G.google.analytics.data.v1beta.Dimension" - + "Expression.ConcatenateExpressionH\000\032(\n\016Ca" - + "seExpression\022\026\n\016dimension_name\030\001 \001(\t\032C\n\025" - + "ConcatenateExpression\022\027\n\017dimension_names" - + "\030\001 \003(\t\022\021\n\tdelimiter\030\002 \001(\tB\020\n\016one_express" - + "ion\"=\n\006Metric\022\014\n\004name\030\001 \001(\t\022\022\n\nexpressio" - + "n\030\002 \001(\t\022\021\n\tinvisible\030\003 \001(\010\"\255\002\n\020FilterExp" - + "ression\022G\n\tand_group\030\001 \001(\01322.google.anal" - + "ytics.data.v1beta.FilterExpressionListH\000" - + "\022F\n\010or_group\030\002 \001(\01322.google.analytics.da" - + "ta.v1beta.FilterExpressionListH\000\022H\n\016not_" - + "expression\030\003 \001(\0132..google.analytics.data" - + ".v1beta.FilterExpressionH\000\0226\n\006filter\030\004 \001" - + "(\0132$.google.analytics.data.v1beta.Filter" - + "H\000B\006\n\004expr\"[\n\024FilterExpressionList\022C\n\013ex" - + "pressions\030\001 \003(\0132..google.analytics.data." - + "v1beta.FilterExpression\"\336\010\n\006Filter\022\022\n\nfi" - + "eld_name\030\001 \001(\t\022J\n\rstring_filter\030\003 \001(\01321." - + "google.analytics.data.v1beta.Filter.Stri" - + "ngFilterH\000\022K\n\016in_list_filter\030\004 \001(\01321.goo" - + "gle.analytics.data.v1beta.Filter.InListF" - + "ilterH\000\022L\n\016numeric_filter\030\005 \001(\01322.google" - + ".analytics.data.v1beta.Filter.NumericFil" - + "terH\000\022L\n\016between_filter\030\006 \001(\01322.google.a" - + "nalytics.data.v1beta.Filter.BetweenFilte" - + "rH\000\032\216\002\n\014StringFilter\022O\n\nmatch_type\030\001 \001(\016" - + "2;.google.analytics.data.v1beta.Filter.S" - + "tringFilter.MatchType\022\r\n\005value\030\002 \001(\t\022\026\n\016" - + "case_sensitive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n\026MA" - + "TCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEG" - + "INS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022" - + "\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\0326\n\014" - + "InListFilter\022\016\n\006values\030\001 \003(\t\022\026\n\016case_sen" - + "sitive\030\002 \001(\010\032\243\002\n\rNumericFilter\022O\n\toperat" - + "ion\030\001 \001(\0162<.google.analytics.data.v1beta" - + ".Filter.NumericFilter.Operation\0229\n\005value" - + "\030\002 \001(\0132*.google.analytics.data.v1beta.Nu" - + "mericValue\"\205\001\n\tOperation\022\031\n\025OPERATION_UN" - + "SPECIFIED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n" - + "\022LESS_THAN_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022" - + "\031\n\025GREATER_THAN_OR_EQUAL\020\005\032\215\001\n\rBetweenFi" - + "lter\022>\n\nfrom_value\030\001 \001(\0132*.google.analyt" - + "ics.data.v1beta.NumericValue\022<\n\010to_value" - + "\030\002 \001(\0132*.google.analytics.data.v1beta.Nu" - + "mericValueB\014\n\none_filter\"\332\005\n\007OrderBy\022E\n\006" - + "metric\030\001 \001(\01323.google.analytics.data.v1b" - + "eta.OrderBy.MetricOrderByH\000\022K\n\tdimension" - + "\030\002 \001(\01326.google.analytics.data.v1beta.Or" - + "derBy.DimensionOrderByH\000\022C\n\005pivot\030\003 \001(\0132" - + "2.google.analytics.data.v1beta.OrderBy.P" - + "ivotOrderByH\000\022\014\n\004desc\030\004 \001(\010\032$\n\rMetricOrd" - + "erBy\022\023\n\013metric_name\030\001 \001(\t\032\353\001\n\020DimensionO" - + "rderBy\022\026\n\016dimension_name\030\001 \001(\t\022T\n\norder_" - + "type\030\002 \001(\0162@.google.analytics.data.v1bet" - + "a.OrderBy.DimensionOrderBy.OrderType\"i\n\t" - + "OrderType\022\032\n\026ORDER_TYPE_UNSPECIFIED\020\000\022\020\n" - + "\014ALPHANUMERIC\020\001\022!\n\035CASE_INSENSITIVE_ALPH" - + "ANUMERIC\020\002\022\013\n\007NUMERIC\020\003\032\303\001\n\014PivotOrderBy" - + "\022\023\n\013metric_name\030\001 \001(\t\022[\n\020pivot_selection" - + "s\030\002 \003(\0132A.google.analytics.data.v1beta.O" - + "rderBy.PivotOrderBy.PivotSelection\032A\n\016Pi" - + "votSelection\022\026\n\016dimension_name\030\001 \001(\t\022\027\n\017" - + "dimension_value\030\002 \001(\tB\016\n\014one_order_by\"\303\001" - + "\n\005Pivot\022\023\n\013field_names\030\001 \003(\t\0228\n\torder_by" - + "s\030\002 \003(\0132%.google.analytics.data.v1beta.O" - + "rderBy\022\016\n\006offset\030\003 \001(\003\022\r\n\005limit\030\004 \001(\003\022L\n" - + "\023metric_aggregations\030\005 \003(\0162/.google.anal" - + "ytics.data.v1beta.MetricAggregation\"\332\001\n\n" - + "CohortSpec\0225\n\007cohorts\030\001 \003(\0132$.google.ana" - + "lytics.data.v1beta.Cohort\022A\n\rcohorts_ran" - + "ge\030\002 \001(\0132*.google.analytics.data.v1beta." - + "CohortsRange\022R\n\026cohort_report_settings\030\003" - + " \001(\01322.google.analytics.data.v1beta.Coho" - + "rtReportSettings\"f\n\006Cohort\022\014\n\004name\030\001 \001(\t" - + "\022\021\n\tdimension\030\002 \001(\t\022;\n\ndate_range\030\003 \001(\0132" - + "\'.google.analytics.data.v1beta.DateRange" - + "\"\325\001\n\014CohortsRange\022K\n\013granularity\030\001 \001(\01626" - + ".google.analytics.data.v1beta.CohortsRan" - + "ge.Granularity\022\024\n\014start_offset\030\002 \001(\005\022\022\n\n" - + "end_offset\030\003 \001(\005\"N\n\013Granularity\022\033\n\027GRANU" - + "LARITY_UNSPECIFIED\020\000\022\t\n\005DAILY\020\001\022\n\n\006WEEKL" - + "Y\020\002\022\013\n\007MONTHLY\020\003\"*\n\024CohortReportSettings" - + "\022\022\n\naccumulate\030\001 \001(\010\"\210\005\n\020ResponseMetaDat" - + "a\022 \n\030data_loss_from_other_row\030\003 \001(\010\022r\n\033s" - + "chema_restriction_response\030\004 \001(\0132H.googl" - + "e.analytics.data.v1beta.ResponseMetaData" - + ".SchemaRestrictionResponseH\000\210\001\001\022\032\n\rcurre" - + "ncy_code\030\005 \001(\tH\001\210\001\001\022\026\n\ttime_zone\030\006 \001(\tH\002" - + "\210\001\001\022\031\n\014empty_reason\030\007 \001(\tH\003\210\001\001\032\275\002\n\031Schem" - + "aRestrictionResponse\022\204\001\n\032active_metric_r" - + "estrictions\030\001 \003(\0132`.google.analytics.dat" - + "a.v1beta.ResponseMetaData.SchemaRestrict" - + "ionResponse.ActiveMetricRestriction\032\230\001\n\027" - + "ActiveMetricRestriction\022\030\n\013metric_name\030\001" - + " \001(\tH\000\210\001\001\022S\n\027restricted_metric_types\030\002 \003" - + "(\01622.google.analytics.data.v1beta.Restri" - + "ctedMetricTypeB\016\n\014_metric_nameB\036\n\034_schem" - + "a_restriction_responseB\020\n\016_currency_code" - + "B\014\n\n_time_zoneB\017\n\r_empty_reason\"\037\n\017Dimen" - + "sionHeader\022\014\n\004name\030\001 \001(\t\"T\n\014MetricHeader" - + "\022\014\n\004name\030\001 \001(\t\0226\n\004type\030\002 \001(\0162(.google.an" - + "alytics.data.v1beta.MetricType\"u\n\013PivotH" - + "eader\022S\n\027pivot_dimension_headers\030\001 \003(\01322" - + ".google.analytics.data.v1beta.PivotDimen" - + "sionHeader\022\021\n\trow_count\030\002 \001(\005\"^\n\024PivotDi" - + "mensionHeader\022F\n\020dimension_values\030\001 \003(\0132" - + ",.google.analytics.data.v1beta.Dimension" - + "Value\"\217\001\n\003Row\022F\n\020dimension_values\030\001 \003(\0132" - + ",.google.analytics.data.v1beta.Dimension" - + "Value\022@\n\rmetric_values\030\002 \003(\0132).google.an" - + "alytics.data.v1beta.MetricValue\".\n\016Dimen" - + "sionValue\022\017\n\005value\030\001 \001(\tH\000B\013\n\tone_value\"" - + "+\n\013MetricValue\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_v" - + "alue\"J\n\014NumericValue\022\025\n\013int64_value\030\001 \001(" - + "\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone_value" - + "\"\223\003\n\rPropertyQuota\022A\n\016tokens_per_day\030\001 \001" - + "(\0132).google.analytics.data.v1beta.QuotaS" - + "tatus\022B\n\017tokens_per_hour\030\002 \001(\0132).google." - + "analytics.data.v1beta.QuotaStatus\022F\n\023con" - + "current_requests\030\003 \001(\0132).google.analytic" - + "s.data.v1beta.QuotaStatus\022U\n\"server_erro" - + "rs_per_project_per_hour\030\004 \001(\0132).google.a" - + "nalytics.data.v1beta.QuotaStatus\022\\\n)pote" - + "ntially_thresholded_requests_per_hour\030\005 " - + "\001(\0132).google.analytics.data.v1beta.Quota" - + "Status\"2\n\013QuotaStatus\022\020\n\010consumed\030\001 \001(\005\022" - + "\021\n\tremaining\030\002 \001(\005\"\226\001\n\021DimensionMetadata" - + "\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013d" - + "escription\030\003 \001(\t\022\034\n\024deprecated_api_names" - + "\030\004 \003(\t\022\031\n\021custom_definition\030\005 \001(\010\022\020\n\010cat" - + "egory\030\007 \001(\t\"\222\003\n\016MetricMetadata\022\020\n\010api_na" - + "me\030\001 \001(\t\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013description" - + "\030\003 \001(\t\022\034\n\024deprecated_api_names\030\004 \003(\t\0226\n\004" - + "type\030\005 \001(\0162(.google.analytics.data.v1bet" - + "a.MetricType\022\022\n\nexpression\030\006 \001(\t\022\031\n\021cust" - + "om_definition\030\007 \001(\010\022S\n\017blocked_reasons\030\010" - + " \003(\0162:.google.analytics.data.v1beta.Metr" - + "icMetadata.BlockedReason\022\020\n\010category\030\n \001" - + "(\t\"\\\n\rBlockedReason\022\036\n\032BLOCKED_REASON_UN" - + "SPECIFIED\020\000\022\026\n\022NO_REVENUE_METRICS\020\001\022\023\n\017N" - + "O_COST_METRICS\020\002\"\334\001\n\026DimensionCompatibil" - + "ity\022P\n\022dimension_metadata\030\001 \001(\0132/.google" - + ".analytics.data.v1beta.DimensionMetadata" - + "H\000\210\001\001\022G\n\rcompatibility\030\002 \001(\0162+.google.an" - + "alytics.data.v1beta.CompatibilityH\001\210\001\001B\025" - + "\n\023_dimension_metadataB\020\n\016_compatibility\"" - + "\320\001\n\023MetricCompatibility\022J\n\017metric_metada" - + "ta\030\001 \001(\0132,.google.analytics.data.v1beta." - + "MetricMetadataH\000\210\001\001\022G\n\rcompatibility\030\002 \001" - + "(\0162+.google.analytics.data.v1beta.Compat" - + "ibilityH\001\210\001\001B\022\n\020_metric_metadataB\020\n\016_com" - + "patibility*g\n\021MetricAggregation\022\"\n\036METRI" - + "C_AGGREGATION_UNSPECIFIED\020\000\022\t\n\005TOTAL\020\001\022\013" - + "\n\007MINIMUM\020\005\022\013\n\007MAXIMUM\020\006\022\t\n\005COUNT\020\004*\201\002\n\n" - + "MetricType\022\033\n\027METRIC_TYPE_UNSPECIFIED\020\000\022" - + "\020\n\014TYPE_INTEGER\020\001\022\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYP" - + "E_SECONDS\020\004\022\025\n\021TYPE_MILLISECONDS\020\005\022\020\n\014TY" - + "PE_MINUTES\020\006\022\016\n\nTYPE_HOURS\020\007\022\021\n\rTYPE_STA" - + "NDARD\020\010\022\021\n\rTYPE_CURRENCY\020\t\022\r\n\tTYPE_FEET\020" - + "\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n\017TY" - + "PE_KILOMETERS\020\r*_\n\024RestrictedMetricType\022" - + "&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022" - + "\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA\020\002*P\n\rComp" - + "atibility\022\035\n\031COMPATIBILITY_UNSPECIFIED\020\000" - + "\022\016\n\nCOMPATIBLE\020\001\022\020\n\014INCOMPATIBLE\020\002By\n co" - + "m.google.analytics.data.v1betaB\021Reportin" - + "gApiProtoP\001Z@google.golang.org/genproto/" - + "googleapis/analytics/data/v1beta;datab\006p" - + "roto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_analytics_data_v1beta_DateRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_data_v1beta_DateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DateRange_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", "Name", - }); - internal_static_google_analytics_data_v1beta_MinuteRange_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_data_v1beta_MinuteRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_MinuteRange_descriptor, - new java.lang.String[] { - "StartMinutesAgo", "EndMinutesAgo", "Name", "StartMinutesAgo", "EndMinutesAgo", - }); - internal_static_google_analytics_data_v1beta_Dimension_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_data_v1beta_Dimension_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Dimension_descriptor, - new java.lang.String[] { - "Name", "DimensionExpression", - }); - internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_data_v1beta_DimensionExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor, - new java.lang.String[] { - "LowerCase", "UpperCase", "Concatenate", "OneExpression", - }); - internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor = - internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor, - new java.lang.String[] { - "DimensionName", - }); - internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_descriptor = - internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor - .getNestedTypes() - .get(1); - internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionExpression_ConcatenateExpression_descriptor, - new java.lang.String[] { - "DimensionNames", "Delimiter", - }); - internal_static_google_analytics_data_v1beta_Metric_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_data_v1beta_Metric_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Metric_descriptor, - new java.lang.String[] { - "Name", "Expression", "Invisible", - }); - internal_static_google_analytics_data_v1beta_FilterExpression_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_data_v1beta_FilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_FilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", - }); - internal_static_google_analytics_data_v1beta_FilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_data_v1beta_FilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_FilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1beta_Filter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_data_v1beta_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Filter_descriptor, - new java.lang.String[] { - "FieldName", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "OneFilter", - }); - internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor = - internal_static_google_analytics_data_v1beta_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_data_v1beta_Filter_StringFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor, - new java.lang.String[] { - "MatchType", "Value", "CaseSensitive", - }); - internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor = - internal_static_google_analytics_data_v1beta_Filter_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_data_v1beta_Filter_InListFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor, - new java.lang.String[] { - "Values", "CaseSensitive", - }); - internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor = - internal_static_google_analytics_data_v1beta_Filter_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_data_v1beta_Filter_NumericFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor, - new java.lang.String[] { - "Operation", "Value", - }); - internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor = - internal_static_google_analytics_data_v1beta_Filter_descriptor.getNestedTypes().get(3); - internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor, - new java.lang.String[] { - "FromValue", "ToValue", - }); - internal_static_google_analytics_data_v1beta_OrderBy_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_data_v1beta_OrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_OrderBy_descriptor, - new java.lang.String[] { - "Metric", "Dimension", "Pivot", "Desc", "OneOrderBy", - }); - internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor = - internal_static_google_analytics_data_v1beta_OrderBy_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor, - new java.lang.String[] { - "MetricName", - }); - internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor = - internal_static_google_analytics_data_v1beta_OrderBy_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor, - new java.lang.String[] { - "DimensionName", "OrderType", - }); - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor = - internal_static_google_analytics_data_v1beta_OrderBy_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor, - new java.lang.String[] { - "MetricName", "PivotSelections", - }); - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor = - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor, - new java.lang.String[] { - "DimensionName", "DimensionValue", - }); - internal_static_google_analytics_data_v1beta_Pivot_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_data_v1beta_Pivot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Pivot_descriptor, - new java.lang.String[] { - "FieldNames", "OrderBys", "Offset", "Limit", "MetricAggregations", - }); - internal_static_google_analytics_data_v1beta_CohortSpec_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_data_v1beta_CohortSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_CohortSpec_descriptor, - new java.lang.String[] { - "Cohorts", "CohortsRange", "CohortReportSettings", - }); - internal_static_google_analytics_data_v1beta_Cohort_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_data_v1beta_Cohort_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Cohort_descriptor, - new java.lang.String[] { - "Name", "Dimension", "DateRange", - }); - internal_static_google_analytics_data_v1beta_CohortsRange_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_data_v1beta_CohortsRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_CohortsRange_descriptor, - new java.lang.String[] { - "Granularity", "StartOffset", "EndOffset", - }); - internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_data_v1beta_CohortReportSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor, - new java.lang.String[] { - "Accumulate", - }); - internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_data_v1beta_ResponseMetaData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor, - new java.lang.String[] { - "DataLossFromOtherRow", - "SchemaRestrictionResponse", - "CurrencyCode", - "TimeZone", - "EmptyReason", - "SchemaRestrictionResponse", - "CurrencyCode", - "TimeZone", - "EmptyReason", - }); - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor = - internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor, - new java.lang.String[] { - "ActiveMetricRestrictions", - }); - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_descriptor = - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_descriptor, - new java.lang.String[] { - "MetricName", "RestrictedMetricTypes", "MetricName", - }); - internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_data_v1beta_DimensionHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_data_v1beta_MetricHeader_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_data_v1beta_MetricHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_MetricHeader_descriptor, - new java.lang.String[] { - "Name", "Type", - }); - internal_static_google_analytics_data_v1beta_PivotHeader_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_data_v1beta_PivotHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_PivotHeader_descriptor, - new java.lang.String[] { - "PivotDimensionHeaders", "RowCount", - }); - internal_static_google_analytics_data_v1beta_PivotDimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_data_v1beta_PivotDimensionHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_PivotDimensionHeader_descriptor, - new java.lang.String[] { - "DimensionValues", - }); - internal_static_google_analytics_data_v1beta_Row_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_data_v1beta_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_Row_descriptor, - new java.lang.String[] { - "DimensionValues", "MetricValues", - }); - internal_static_google_analytics_data_v1beta_DimensionValue_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_data_v1beta_DimensionValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionValue_descriptor, - new java.lang.String[] { - "Value", "OneValue", - }); - internal_static_google_analytics_data_v1beta_MetricValue_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_data_v1beta_MetricValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_MetricValue_descriptor, - new java.lang.String[] { - "Value", "OneValue", - }); - internal_static_google_analytics_data_v1beta_NumericValue_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_data_v1beta_NumericValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_NumericValue_descriptor, - new java.lang.String[] { - "Int64Value", "DoubleValue", "OneValue", - }); - internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_data_v1beta_PropertyQuota_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor, - new java.lang.String[] { - "TokensPerDay", - "TokensPerHour", - "ConcurrentRequests", - "ServerErrorsPerProjectPerHour", - "PotentiallyThresholdedRequestsPerHour", - }); - internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_data_v1beta_QuotaStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor, - new java.lang.String[] { - "Consumed", "Remaining", - }); - internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_data_v1beta_DimensionMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor, - new java.lang.String[] { - "ApiName", - "UiName", - "Description", - "DeprecatedApiNames", - "CustomDefinition", - "Category", - }); - internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_data_v1beta_MetricMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor, - new java.lang.String[] { - "ApiName", - "UiName", - "Description", - "DeprecatedApiNames", - "Type", - "Expression", - "CustomDefinition", - "BlockedReasons", - "Category", - }); - internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_data_v1beta_DimensionCompatibility_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor, - new java.lang.String[] { - "DimensionMetadata", "Compatibility", "DimensionMetadata", "Compatibility", - }); - internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_data_v1beta_MetricCompatibility_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor, - new java.lang.String[] { - "MetricMetadata", "Compatibility", "MetricMetadata", "Compatibility", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaData.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaData.java deleted file mode 100644 index e7d0f6d7..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaData.java +++ /dev/null @@ -1,4218 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Response's metadata carrying additional information about the report content.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.ResponseMetaData} - */ -public final class ResponseMetaData extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.ResponseMetaData) - ResponseMetaDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResponseMetaData.newBuilder() to construct. - private ResponseMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResponseMetaData() { - currencyCode_ = ""; - timeZone_ = ""; - emptyReason_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResponseMetaData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ResponseMetaData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: - { - dataLossFromOtherRow_ = input.readBool(); - break; - } - case 34: - { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder - subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = schemaRestrictionResponse_.toBuilder(); - } - schemaRestrictionResponse_ = - input.readMessage( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schemaRestrictionResponse_); - schemaRestrictionResponse_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - currencyCode_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - timeZone_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - emptyReason_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.ResponseMetaData.class, - com.google.analytics.data.v1beta.ResponseMetaData.Builder.class); - } - - public interface SchemaRestrictionResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - java.util.List< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction> - getActiveMetricRestrictionsList(); - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - getActiveMetricRestrictions(int index); - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - int getActiveMetricRestrictionsCount(); - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - java.util.List< - ? extends - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder> - getActiveMetricRestrictionsOrBuilderList(); - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder - getActiveMetricRestrictionsOrBuilder(int index); - } - /** - * - * - *
-   * The schema restrictions actively enforced in creating this report. To learn
-   * more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse} - */ - public static final class SchemaRestrictionResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - SchemaRestrictionResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaRestrictionResponse.newBuilder() to construct. - private SchemaRestrictionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SchemaRestrictionResponse() { - activeMetricRestrictions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SchemaRestrictionResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SchemaRestrictionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - activeMetricRestrictions_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.ResponseMetaData - .SchemaRestrictionResponse.ActiveMetricRestriction>(); - mutable_bitField0_ |= 0x00000001; - } - activeMetricRestrictions_.add( - input.readMessage( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - activeMetricRestrictions_ = - java.util.Collections.unmodifiableList(activeMetricRestrictions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.class, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder - .class); - } - - public interface ActiveMetricRestrictionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The name of the restricted metric.
-       * 
- * - * optional string metric_name = 1; - * - * @return Whether the metricName field is set. - */ - boolean hasMetricName(); - /** - * - * - *
-       * The name of the restricted metric.
-       * 
- * - * optional string metric_name = 1; - * - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - * - * - *
-       * The name of the restricted metric.
-       * 
- * - * optional string metric_name = 1; - * - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString getMetricNameBytes(); - - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return A list containing the restrictedMetricTypes. - */ - java.util.List - getRestrictedMetricTypesList(); - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return The count of restrictedMetricTypes. - */ - int getRestrictedMetricTypesCount(); - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the element to return. - * @return The restrictedMetricTypes at the given index. - */ - com.google.analytics.data.v1beta.RestrictedMetricType getRestrictedMetricTypes(int index); - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return A list containing the enum numeric values on the wire for restrictedMetricTypes. - */ - java.util.List getRestrictedMetricTypesValueList(); - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricTypes at the given index. - */ - int getRestrictedMetricTypesValue(int index); - } - /** - * - * - *
-     * A metric actively restricted in creating the report.
-     * 
- * - * Protobuf type {@code - * google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction} - */ - public static final class ActiveMetricRestriction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction) - ActiveMetricRestrictionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveMetricRestriction.newBuilder() to construct. - private ActiveMetricRestriction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ActiveMetricRestriction() { - metricName_ = ""; - restrictedMetricTypes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ActiveMetricRestriction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ActiveMetricRestriction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - metricName_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - restrictedMetricTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - restrictedMetricTypes_.add(rawValue); - break; - } - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - restrictedMetricTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - restrictedMetricTypes_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - restrictedMetricTypes_ = java.util.Collections.unmodifiableList(restrictedMetricTypes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.class, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder.class); - } - - private int bitField0_; - public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; - /** - * - * - *
-       * The name of the restricted metric.
-       * 
- * - * optional string metric_name = 1; - * - * @return Whether the metricName field is set. - */ - @java.lang.Override - public boolean hasMetricName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * The name of the restricted metric.
-       * 
- * - * optional string metric_name = 1; - * - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - * - * - *
-       * The name of the restricted metric.
-       * 
- * - * optional string metric_name = 1; - * - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESTRICTED_METRIC_TYPES_FIELD_NUMBER = 2; - private java.util.List restrictedMetricTypes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.RestrictedMetricType> - restrictedMetricTypes_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.RestrictedMetricType>() { - public com.google.analytics.data.v1beta.RestrictedMetricType convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.RestrictedMetricType result = - com.google.analytics.data.v1beta.RestrictedMetricType.valueOf(from); - return result == null - ? com.google.analytics.data.v1beta.RestrictedMetricType.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return A list containing the restrictedMetricTypes. - */ - @java.lang.Override - public java.util.List - getRestrictedMetricTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.RestrictedMetricType>( - restrictedMetricTypes_, restrictedMetricTypes_converter_); - } - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return The count of restrictedMetricTypes. - */ - @java.lang.Override - public int getRestrictedMetricTypesCount() { - return restrictedMetricTypes_.size(); - } - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the element to return. - * @return The restrictedMetricTypes at the given index. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RestrictedMetricType getRestrictedMetricTypes( - int index) { - return restrictedMetricTypes_converter_.convert(restrictedMetricTypes_.get(index)); - } - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return A list containing the enum numeric values on the wire for restrictedMetricTypes. - */ - @java.lang.Override - public java.util.List getRestrictedMetricTypesValueList() { - return restrictedMetricTypes_; - } - /** - * - * - *
-       * The reason for this metric's restriction.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricTypes at the given index. - */ - @java.lang.Override - public int getRestrictedMetricTypesValue(int index) { - return restrictedMetricTypes_.get(index); - } - - private int restrictedMetricTypesMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - if (getRestrictedMetricTypesList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(restrictedMetricTypesMemoizedSerializedSize); - } - for (int i = 0; i < restrictedMetricTypes_.size(); i++) { - output.writeEnumNoTag(restrictedMetricTypes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - { - int dataSize = 0; - for (int i = 0; i < restrictedMetricTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - restrictedMetricTypes_.get(i)); - } - size += dataSize; - if (!getRestrictedMetricTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - restrictedMetricTypesMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - other = - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction) - obj; - - if (hasMetricName() != other.hasMetricName()) return false; - if (hasMetricName()) { - if (!getMetricName().equals(other.getMetricName())) return false; - } - if (!restrictedMetricTypes_.equals(other.restrictedMetricTypes_)) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetricName()) { - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - } - if (getRestrictedMetricTypesCount() > 0) { - hash = (37 * hash) + RESTRICTED_METRIC_TYPES_FIELD_NUMBER; - hash = (53 * hash) + restrictedMetricTypes_.hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * A metric actively restricted in creating the report.
-       * 
- * - * Protobuf type {@code - * google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction) - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.class, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - metricName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - restrictedMetricTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - build() { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - buildPartial() { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - result = - new com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.metricName_ = metricName_; - if (((bitField0_ & 0x00000002) != 0)) { - restrictedMetricTypes_ = java.util.Collections.unmodifiableList(restrictedMetricTypes_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.restrictedMetricTypes_ = restrictedMetricTypes_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction) { - return mergeFrom( - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - other) { - if (other - == com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.getDefaultInstance()) return this; - if (other.hasMetricName()) { - bitField0_ |= 0x00000001; - metricName_ = other.metricName_; - onChanged(); - } - if (!other.restrictedMetricTypes_.isEmpty()) { - if (restrictedMetricTypes_.isEmpty()) { - restrictedMetricTypes_ = other.restrictedMetricTypes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.addAll(other.restrictedMetricTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - * - * - *
-         * The name of the restricted metric.
-         * 
- * - * optional string metric_name = 1; - * - * @return Whether the metricName field is set. - */ - public boolean hasMetricName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-         * The name of the restricted metric.
-         * 
- * - * optional string metric_name = 1; - * - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The name of the restricted metric.
-         * 
- * - * optional string metric_name = 1; - * - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The name of the restricted metric.
-         * 
- * - * optional string metric_name = 1; - * - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - metricName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the restricted metric.
-         * 
- * - * optional string metric_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearMetricName() { - bitField0_ = (bitField0_ & ~0x00000001); - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the restricted metric.
-         * 
- * - * optional string metric_name = 1; - * - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bitField0_ |= 0x00000001; - metricName_ = value; - onChanged(); - return this; - } - - private java.util.List restrictedMetricTypes_ = - java.util.Collections.emptyList(); - - private void ensureRestrictedMetricTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - restrictedMetricTypes_ = - new java.util.ArrayList(restrictedMetricTypes_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return A list containing the restrictedMetricTypes. - */ - public java.util.List - getRestrictedMetricTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.RestrictedMetricType>( - restrictedMetricTypes_, restrictedMetricTypes_converter_); - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return The count of restrictedMetricTypes. - */ - public int getRestrictedMetricTypesCount() { - return restrictedMetricTypes_.size(); - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the element to return. - * @return The restrictedMetricTypes at the given index. - */ - public com.google.analytics.data.v1beta.RestrictedMetricType getRestrictedMetricTypes( - int index) { - return restrictedMetricTypes_converter_.convert(restrictedMetricTypes_.get(index)); - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index to set the value at. - * @param value The restrictedMetricTypes to set. - * @return This builder for chaining. - */ - public Builder setRestrictedMetricTypes( - int index, com.google.analytics.data.v1beta.RestrictedMetricType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param value The restrictedMetricTypes to add. - * @return This builder for chaining. - */ - public Builder addRestrictedMetricTypes( - com.google.analytics.data.v1beta.RestrictedMetricType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param values The restrictedMetricTypes to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedMetricTypes( - java.lang.Iterable - values) { - ensureRestrictedMetricTypesIsMutable(); - for (com.google.analytics.data.v1beta.RestrictedMetricType value : values) { - restrictedMetricTypes_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearRestrictedMetricTypes() { - restrictedMetricTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @return A list containing the enum numeric values on the wire for restrictedMetricTypes. - */ - public java.util.List getRestrictedMetricTypesValueList() { - return java.util.Collections.unmodifiableList(restrictedMetricTypes_); - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricTypes at the given index. - */ - public int getRestrictedMetricTypesValue(int index) { - return restrictedMetricTypes_.get(index); - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricTypes at the given index. - * @return This builder for chaining. - */ - public Builder setRestrictedMetricTypesValue(int index, int value) { - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param value The enum numeric value on the wire for restrictedMetricTypes to add. - * @return This builder for chaining. - */ - public Builder addRestrictedMetricTypesValue(int value) { - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-         * The reason for this metric's restriction.
-         * 
- * - * - * repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * - * - * @param values The enum numeric values on the wire for restrictedMetricTypes to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedMetricTypesValue( - java.lang.Iterable values) { - ensureRestrictedMetricTypesIsMutable(); - for (int value : values) { - restrictedMetricTypes_.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.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction) - private static final com.google.analytics.data.v1beta.ResponseMetaData - .SchemaRestrictionResponse.ActiveMetricRestriction - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction(); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveMetricRestriction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveMetricRestriction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int ACTIVE_METRIC_RESTRICTIONS_FIELD_NUMBER = 1; - private java.util.List< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction> - activeMetricRestrictions_; - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction> - getActiveMetricRestrictionsList() { - return activeMetricRestrictions_; - } - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder> - getActiveMetricRestrictionsOrBuilderList() { - return activeMetricRestrictions_; - } - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - @java.lang.Override - public int getActiveMetricRestrictionsCount() { - return activeMetricRestrictions_.size(); - } - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - getActiveMetricRestrictions(int index) { - return activeMetricRestrictions_.get(index); - } - /** - * - * - *
-     * All restrictions actively enforced in creating the report. For example,
-     * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-     * However, this active response restriction is only populated if the user's
-     * custom role disallows access to `REVENUE_DATA`.
-     * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder - getActiveMetricRestrictionsOrBuilder(int index) { - return activeMetricRestrictions_.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 < activeMetricRestrictions_.size(); i++) { - output.writeMessage(1, activeMetricRestrictions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < activeMetricRestrictions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, activeMetricRestrictions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse other = - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) obj; - - if (!getActiveMetricRestrictionsList().equals(other.getActiveMetricRestrictionsList())) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getActiveMetricRestrictionsCount() > 0) { - hash = (37 * hash) + ACTIVE_METRIC_RESTRICTIONS_FIELD_NUMBER; - hash = (53 * hash) + getActiveMetricRestrictionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 schema restrictions actively enforced in creating this report. To learn
-     * more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * Protobuf type {@code google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.class, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder - .class); - } - - // Construct using - // com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getActiveMetricRestrictionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (activeMetricRestrictionsBuilder_ == null) { - activeMetricRestrictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - activeMetricRestrictionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse build() { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - buildPartial() { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse result = - new com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse(this); - int from_bitField0_ = bitField0_; - if (activeMetricRestrictionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - activeMetricRestrictions_ = - java.util.Collections.unmodifiableList(activeMetricRestrictions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.activeMetricRestrictions_ = activeMetricRestrictions_; - } else { - result.activeMetricRestrictions_ = activeMetricRestrictionsBuilder_.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.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) { - return mergeFrom( - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse other) { - if (other - == com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance()) return this; - if (activeMetricRestrictionsBuilder_ == null) { - if (!other.activeMetricRestrictions_.isEmpty()) { - if (activeMetricRestrictions_.isEmpty()) { - activeMetricRestrictions_ = other.activeMetricRestrictions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.addAll(other.activeMetricRestrictions_); - } - onChanged(); - } - } else { - if (!other.activeMetricRestrictions_.isEmpty()) { - if (activeMetricRestrictionsBuilder_.isEmpty()) { - activeMetricRestrictionsBuilder_.dispose(); - activeMetricRestrictionsBuilder_ = null; - activeMetricRestrictions_ = other.activeMetricRestrictions_; - bitField0_ = (bitField0_ & ~0x00000001); - activeMetricRestrictionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActiveMetricRestrictionsFieldBuilder() - : null; - } else { - activeMetricRestrictionsBuilder_.addAllMessages(other.activeMetricRestrictions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction> - activeMetricRestrictions_ = java.util.Collections.emptyList(); - - private void ensureActiveMetricRestrictionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - activeMetricRestrictions_ = - new java.util.ArrayList< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction>(activeMetricRestrictions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder> - activeMetricRestrictionsBuilder_; - - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public java.util.List< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction> - getActiveMetricRestrictionsList() { - if (activeMetricRestrictionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(activeMetricRestrictions_); - } else { - return activeMetricRestrictionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public int getActiveMetricRestrictionsCount() { - if (activeMetricRestrictionsBuilder_ == null) { - return activeMetricRestrictions_.size(); - } else { - return activeMetricRestrictionsBuilder_.getCount(); - } - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - getActiveMetricRestrictions(int index) { - if (activeMetricRestrictionsBuilder_ == null) { - return activeMetricRestrictions_.get(index); - } else { - return activeMetricRestrictionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder setActiveMetricRestrictions( - int index, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - value) { - if (activeMetricRestrictionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.set(index, value); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder setActiveMetricRestrictions( - int index, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder - builderForValue) { - if (activeMetricRestrictionsBuilder_ == null) { - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.set(index, builderForValue.build()); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder addActiveMetricRestrictions( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - value) { - if (activeMetricRestrictionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.add(value); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder addActiveMetricRestrictions( - int index, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - value) { - if (activeMetricRestrictionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.add(index, value); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder addActiveMetricRestrictions( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder - builderForValue) { - if (activeMetricRestrictionsBuilder_ == null) { - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.add(builderForValue.build()); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder addActiveMetricRestrictions( - int index, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder - builderForValue) { - if (activeMetricRestrictionsBuilder_ == null) { - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.add(index, builderForValue.build()); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder addAllActiveMetricRestrictions( - java.lang.Iterable< - ? extends - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction> - values) { - if (activeMetricRestrictionsBuilder_ == null) { - ensureActiveMetricRestrictionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeMetricRestrictions_); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder clearActiveMetricRestrictions() { - if (activeMetricRestrictionsBuilder_ == null) { - activeMetricRestrictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public Builder removeActiveMetricRestrictions(int index) { - if (activeMetricRestrictionsBuilder_ == null) { - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.remove(index); - onChanged(); - } else { - activeMetricRestrictionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder - getActiveMetricRestrictionsBuilder(int index) { - return getActiveMetricRestrictionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder - getActiveMetricRestrictionsOrBuilder(int index) { - if (activeMetricRestrictionsBuilder_ == null) { - return activeMetricRestrictions_.get(index); - } else { - return activeMetricRestrictionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public java.util.List< - ? extends - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder> - getActiveMetricRestrictionsOrBuilderList() { - if (activeMetricRestrictionsBuilder_ != null) { - return activeMetricRestrictionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(activeMetricRestrictions_); - } - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder - addActiveMetricRestrictionsBuilder() { - return getActiveMetricRestrictionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.getDefaultInstance()); - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder - addActiveMetricRestrictionsBuilder(int index) { - return getActiveMetricRestrictionsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.getDefaultInstance()); - } - /** - * - * - *
-       * All restrictions actively enforced in creating the report. For example,
-       * `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
-       * However, this active response restriction is only populated if the user's
-       * custom role disallows access to `REVENUE_DATA`.
-       * 
- * - * - * repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * - */ - public java.util.List< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder> - getActiveMetricRestrictionsBuilderList() { - return getActiveMetricRestrictionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder> - getActiveMetricRestrictionsFieldBuilder() { - if (activeMetricRestrictionsBuilder_ == null) { - activeMetricRestrictionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction.Builder, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestrictionOrBuilder>( - activeMetricRestrictions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - activeMetricRestrictions_ = null; - } - return activeMetricRestrictionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - private static final com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse(); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaRestrictionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaRestrictionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int DATA_LOSS_FROM_OTHER_ROW_FIELD_NUMBER = 3; - private boolean dataLossFromOtherRow_; - /** - * - * - *
-   * If true, indicates some buckets of dimension combinations are rolled into
-   * "(other)" row. This can happen for high cardinality reports.
-   * 
- * - * bool data_loss_from_other_row = 3; - * - * @return The dataLossFromOtherRow. - */ - @java.lang.Override - public boolean getDataLossFromOtherRow() { - return dataLossFromOtherRow_; - } - - public static final int SCHEMA_RESTRICTION_RESPONSE_FIELD_NUMBER = 4; - private com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - schemaRestrictionResponse_; - /** - * - * - *
-   * Describes the schema restrictions actively enforced in creating this
-   * report. To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - * - * @return Whether the schemaRestrictionResponse field is set. - */ - @java.lang.Override - public boolean hasSchemaRestrictionResponse() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Describes the schema restrictions actively enforced in creating this
-   * report. To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - * - * @return The schemaRestrictionResponse. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - getSchemaRestrictionResponse() { - return schemaRestrictionResponse_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance() - : schemaRestrictionResponse_; - } - /** - * - * - *
-   * Describes the schema restrictions actively enforced in creating this
-   * report. To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseOrBuilder - getSchemaRestrictionResponseOrBuilder() { - return schemaRestrictionResponse_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance() - : schemaRestrictionResponse_; - } - - public static final int CURRENCY_CODE_FIELD_NUMBER = 5; - private volatile java.lang.Object currencyCode_; - /** - * - * - *
-   * The currency code used in this report. Intended to be used in formatting
-   * currency metrics like `purchaseRevenue` for visualization. If currency_code
-   * was specified in the request, this response parameter will echo the request
-   * parameter; otherwise, this response parameter is the property's current
-   * currency_code.
-   * Currency codes are string encodings of currency types from the ISO 4217
-   * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-   * "EUR", "JPY". To learn more, see
-   * https://support.google.com/analytics/answer/9796179.
-   * 
- * - * optional string currency_code = 5; - * - * @return Whether the currencyCode field is set. - */ - @java.lang.Override - public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The currency code used in this report. Intended to be used in formatting
-   * currency metrics like `purchaseRevenue` for visualization. If currency_code
-   * was specified in the request, this response parameter will echo the request
-   * parameter; otherwise, this response parameter is the property's current
-   * currency_code.
-   * Currency codes are string encodings of currency types from the ISO 4217
-   * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-   * "EUR", "JPY". To learn more, see
-   * https://support.google.com/analytics/answer/9796179.
-   * 
- * - * optional string currency_code = 5; - * - * @return The currencyCode. - */ - @java.lang.Override - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } - } - /** - * - * - *
-   * The currency code used in this report. Intended to be used in formatting
-   * currency metrics like `purchaseRevenue` for visualization. If currency_code
-   * was specified in the request, this response parameter will echo the request
-   * parameter; otherwise, this response parameter is the property's current
-   * currency_code.
-   * Currency codes are string encodings of currency types from the ISO 4217
-   * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-   * "EUR", "JPY". To learn more, see
-   * https://support.google.com/analytics/answer/9796179.
-   * 
- * - * optional string currency_code = 5; - * - * @return The bytes for currencyCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIME_ZONE_FIELD_NUMBER = 6; - private volatile java.lang.Object timeZone_; - /** - * - * - *
-   * The property's current timezone. Intended to be used to interpret
-   * time-based dimensions like `hour` and `minute`. Formatted as strings from
-   * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-   * "America/New_York" or "Asia/Tokyo".
-   * 
- * - * optional string time_zone = 6; - * - * @return Whether the timeZone field is set. - */ - @java.lang.Override - public boolean hasTimeZone() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * The property's current timezone. Intended to be used to interpret
-   * time-based dimensions like `hour` and `minute`. Formatted as strings from
-   * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-   * "America/New_York" or "Asia/Tokyo".
-   * 
- * - * optional string time_zone = 6; - * - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - * - * - *
-   * The property's current timezone. Intended to be used to interpret
-   * time-based dimensions like `hour` and `minute`. Formatted as strings from
-   * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-   * "America/New_York" or "Asia/Tokyo".
-   * 
- * - * optional string time_zone = 6; - * - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMPTY_REASON_FIELD_NUMBER = 7; - private volatile java.lang.Object emptyReason_; - /** - * - * - *
-   * If empty reason is specified, the report is empty for this reason.
-   * 
- * - * optional string empty_reason = 7; - * - * @return Whether the emptyReason field is set. - */ - @java.lang.Override - public boolean hasEmptyReason() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * If empty reason is specified, the report is empty for this reason.
-   * 
- * - * optional string empty_reason = 7; - * - * @return The emptyReason. - */ - @java.lang.Override - public java.lang.String getEmptyReason() { - java.lang.Object ref = emptyReason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emptyReason_ = s; - return s; - } - } - /** - * - * - *
-   * If empty reason is specified, the report is empty for this reason.
-   * 
- * - * optional string empty_reason = 7; - * - * @return The bytes for emptyReason. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmptyReasonBytes() { - java.lang.Object ref = emptyReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emptyReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (dataLossFromOtherRow_ != false) { - output.writeBool(3, dataLossFromOtherRow_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getSchemaRestrictionResponse()); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, currencyCode_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timeZone_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, emptyReason_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataLossFromOtherRow_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dataLossFromOtherRow_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getSchemaRestrictionResponse()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, currencyCode_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeZone_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, emptyReason_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.ResponseMetaData)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.ResponseMetaData other = - (com.google.analytics.data.v1beta.ResponseMetaData) obj; - - if (getDataLossFromOtherRow() != other.getDataLossFromOtherRow()) return false; - if (hasSchemaRestrictionResponse() != other.hasSchemaRestrictionResponse()) return false; - if (hasSchemaRestrictionResponse()) { - if (!getSchemaRestrictionResponse().equals(other.getSchemaRestrictionResponse())) - return false; - } - if (hasCurrencyCode() != other.hasCurrencyCode()) return false; - if (hasCurrencyCode()) { - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; - } - if (hasTimeZone() != other.hasTimeZone()) return false; - if (hasTimeZone()) { - if (!getTimeZone().equals(other.getTimeZone())) return false; - } - if (hasEmptyReason() != other.hasEmptyReason()) return false; - if (hasEmptyReason()) { - if (!getEmptyReason().equals(other.getEmptyReason())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_LOSS_FROM_OTHER_ROW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataLossFromOtherRow()); - if (hasSchemaRestrictionResponse()) { - hash = (37 * hash) + SCHEMA_RESTRICTION_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getSchemaRestrictionResponse().hashCode(); - } - if (hasCurrencyCode()) { - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); - } - if (hasTimeZone()) { - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - } - if (hasEmptyReason()) { - hash = (37 * hash) + EMPTY_REASON_FIELD_NUMBER; - hash = (53 * hash) + getEmptyReason().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.ResponseMetaData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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's metadata carrying additional information about the report content.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.ResponseMetaData} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.ResponseMetaData) - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.ResponseMetaData.class, - com.google.analytics.data.v1beta.ResponseMetaData.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.ResponseMetaData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSchemaRestrictionResponseFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dataLossFromOtherRow_ = false; - - if (schemaRestrictionResponseBuilder_ == null) { - schemaRestrictionResponse_ = null; - } else { - schemaRestrictionResponseBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - currencyCode_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - timeZone_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - emptyReason_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData build() { - com.google.analytics.data.v1beta.ResponseMetaData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData buildPartial() { - com.google.analytics.data.v1beta.ResponseMetaData result = - new com.google.analytics.data.v1beta.ResponseMetaData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.dataLossFromOtherRow_ = dataLossFromOtherRow_; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (schemaRestrictionResponseBuilder_ == null) { - result.schemaRestrictionResponse_ = schemaRestrictionResponse_; - } else { - result.schemaRestrictionResponse_ = schemaRestrictionResponseBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.currencyCode_ = currencyCode_; - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.timeZone_ = timeZone_; - if (((from_bitField0_ & 0x00000008) != 0)) { - to_bitField0_ |= 0x00000008; - } - result.emptyReason_ = emptyReason_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.ResponseMetaData) { - return mergeFrom((com.google.analytics.data.v1beta.ResponseMetaData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.ResponseMetaData other) { - if (other == com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance()) - return this; - if (other.getDataLossFromOtherRow() != false) { - setDataLossFromOtherRow(other.getDataLossFromOtherRow()); - } - if (other.hasSchemaRestrictionResponse()) { - mergeSchemaRestrictionResponse(other.getSchemaRestrictionResponse()); - } - if (other.hasCurrencyCode()) { - bitField0_ |= 0x00000002; - currencyCode_ = other.currencyCode_; - onChanged(); - } - if (other.hasTimeZone()) { - bitField0_ |= 0x00000004; - timeZone_ = other.timeZone_; - onChanged(); - } - if (other.hasEmptyReason()) { - bitField0_ |= 0x00000008; - emptyReason_ = other.emptyReason_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.ResponseMetaData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.ResponseMetaData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private boolean dataLossFromOtherRow_; - /** - * - * - *
-     * If true, indicates some buckets of dimension combinations are rolled into
-     * "(other)" row. This can happen for high cardinality reports.
-     * 
- * - * bool data_loss_from_other_row = 3; - * - * @return The dataLossFromOtherRow. - */ - @java.lang.Override - public boolean getDataLossFromOtherRow() { - return dataLossFromOtherRow_; - } - /** - * - * - *
-     * If true, indicates some buckets of dimension combinations are rolled into
-     * "(other)" row. This can happen for high cardinality reports.
-     * 
- * - * bool data_loss_from_other_row = 3; - * - * @param value The dataLossFromOtherRow to set. - * @return This builder for chaining. - */ - public Builder setDataLossFromOtherRow(boolean value) { - - dataLossFromOtherRow_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, indicates some buckets of dimension combinations are rolled into
-     * "(other)" row. This can happen for high cardinality reports.
-     * 
- * - * bool data_loss_from_other_row = 3; - * - * @return This builder for chaining. - */ - public Builder clearDataLossFromOtherRow() { - - dataLossFromOtherRow_ = false; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - schemaRestrictionResponse_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseOrBuilder> - schemaRestrictionResponseBuilder_; - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - * - * @return Whether the schemaRestrictionResponse field is set. - */ - public boolean hasSchemaRestrictionResponse() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - * - * @return The schemaRestrictionResponse. - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - getSchemaRestrictionResponse() { - if (schemaRestrictionResponseBuilder_ == null) { - return schemaRestrictionResponse_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance() - : schemaRestrictionResponse_; - } else { - return schemaRestrictionResponseBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - public Builder setSchemaRestrictionResponse( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse value) { - if (schemaRestrictionResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schemaRestrictionResponse_ = value; - onChanged(); - } else { - schemaRestrictionResponseBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - public Builder setSchemaRestrictionResponse( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder - builderForValue) { - if (schemaRestrictionResponseBuilder_ == null) { - schemaRestrictionResponse_ = builderForValue.build(); - onChanged(); - } else { - schemaRestrictionResponseBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - public Builder mergeSchemaRestrictionResponse( - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse value) { - if (schemaRestrictionResponseBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && schemaRestrictionResponse_ != null - && schemaRestrictionResponse_ - != com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance()) { - schemaRestrictionResponse_ = - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .newBuilder(schemaRestrictionResponse_) - .mergeFrom(value) - .buildPartial(); - } else { - schemaRestrictionResponse_ = value; - } - onChanged(); - } else { - schemaRestrictionResponseBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - public Builder clearSchemaRestrictionResponse() { - if (schemaRestrictionResponseBuilder_ == null) { - schemaRestrictionResponse_ = null; - onChanged(); - } else { - schemaRestrictionResponseBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder - getSchemaRestrictionResponseBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSchemaRestrictionResponseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - public com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseOrBuilder - getSchemaRestrictionResponseOrBuilder() { - if (schemaRestrictionResponseBuilder_ != null) { - return schemaRestrictionResponseBuilder_.getMessageOrBuilder(); - } else { - return schemaRestrictionResponse_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .getDefaultInstance() - : schemaRestrictionResponse_; - } - } - /** - * - * - *
-     * Describes the schema restrictions actively enforced in creating this
-     * report. To learn more, see [Access and data-restriction
-     * management](https://support.google.com/analytics/answer/10851388).
-     * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseOrBuilder> - getSchemaRestrictionResponseFieldBuilder() { - if (schemaRestrictionResponseBuilder_ == null) { - schemaRestrictionResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse, - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.Builder, - com.google.analytics.data.v1beta.ResponseMetaData - .SchemaRestrictionResponseOrBuilder>( - getSchemaRestrictionResponse(), getParentForChildren(), isClean()); - schemaRestrictionResponse_ = null; - } - return schemaRestrictionResponseBuilder_; - } - - private java.lang.Object currencyCode_ = ""; - /** - * - * - *
-     * The currency code used in this report. Intended to be used in formatting
-     * currency metrics like `purchaseRevenue` for visualization. If currency_code
-     * was specified in the request, this response parameter will echo the request
-     * parameter; otherwise, this response parameter is the property's current
-     * currency_code.
-     * Currency codes are string encodings of currency types from the ISO 4217
-     * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-     * "EUR", "JPY". To learn more, see
-     * https://support.google.com/analytics/answer/9796179.
-     * 
- * - * optional string currency_code = 5; - * - * @return Whether the currencyCode field is set. - */ - public boolean hasCurrencyCode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The currency code used in this report. Intended to be used in formatting
-     * currency metrics like `purchaseRevenue` for visualization. If currency_code
-     * was specified in the request, this response parameter will echo the request
-     * parameter; otherwise, this response parameter is the property's current
-     * currency_code.
-     * Currency codes are string encodings of currency types from the ISO 4217
-     * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-     * "EUR", "JPY". To learn more, see
-     * https://support.google.com/analytics/answer/9796179.
-     * 
- * - * optional string currency_code = 5; - * - * @return The currencyCode. - */ - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The currency code used in this report. Intended to be used in formatting
-     * currency metrics like `purchaseRevenue` for visualization. If currency_code
-     * was specified in the request, this response parameter will echo the request
-     * parameter; otherwise, this response parameter is the property's current
-     * currency_code.
-     * Currency codes are string encodings of currency types from the ISO 4217
-     * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-     * "EUR", "JPY". To learn more, see
-     * https://support.google.com/analytics/answer/9796179.
-     * 
- * - * optional string currency_code = 5; - * - * @return The bytes for currencyCode. - */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The currency code used in this report. Intended to be used in formatting
-     * currency metrics like `purchaseRevenue` for visualization. If currency_code
-     * was specified in the request, this response parameter will echo the request
-     * parameter; otherwise, this response parameter is the property's current
-     * currency_code.
-     * Currency codes are string encodings of currency types from the ISO 4217
-     * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-     * "EUR", "JPY". To learn more, see
-     * https://support.google.com/analytics/answer/9796179.
-     * 
- * - * optional string currency_code = 5; - * - * @param value The currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - currencyCode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The currency code used in this report. Intended to be used in formatting
-     * currency metrics like `purchaseRevenue` for visualization. If currency_code
-     * was specified in the request, this response parameter will echo the request
-     * parameter; otherwise, this response parameter is the property's current
-     * currency_code.
-     * Currency codes are string encodings of currency types from the ISO 4217
-     * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-     * "EUR", "JPY". To learn more, see
-     * https://support.google.com/analytics/answer/9796179.
-     * 
- * - * optional string currency_code = 5; - * - * @return This builder for chaining. - */ - public Builder clearCurrencyCode() { - bitField0_ = (bitField0_ & ~0x00000002); - currencyCode_ = getDefaultInstance().getCurrencyCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * The currency code used in this report. Intended to be used in formatting
-     * currency metrics like `purchaseRevenue` for visualization. If currency_code
-     * was specified in the request, this response parameter will echo the request
-     * parameter; otherwise, this response parameter is the property's current
-     * currency_code.
-     * Currency codes are string encodings of currency types from the ISO 4217
-     * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-     * "EUR", "JPY". To learn more, see
-     * https://support.google.com/analytics/answer/9796179.
-     * 
- * - * optional string currency_code = 5; - * - * @param value The bytes for currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bitField0_ |= 0x00000002; - currencyCode_ = value; - onChanged(); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - * - * - *
-     * The property's current timezone. Intended to be used to interpret
-     * time-based dimensions like `hour` and `minute`. Formatted as strings from
-     * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-     * "America/New_York" or "Asia/Tokyo".
-     * 
- * - * optional string time_zone = 6; - * - * @return Whether the timeZone field is set. - */ - public boolean hasTimeZone() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The property's current timezone. Intended to be used to interpret
-     * time-based dimensions like `hour` and `minute`. Formatted as strings from
-     * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-     * "America/New_York" or "Asia/Tokyo".
-     * 
- * - * optional string time_zone = 6; - * - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The property's current timezone. Intended to be used to interpret
-     * time-based dimensions like `hour` and `minute`. Formatted as strings from
-     * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-     * "America/New_York" or "Asia/Tokyo".
-     * 
- * - * optional string time_zone = 6; - * - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The property's current timezone. Intended to be used to interpret
-     * time-based dimensions like `hour` and `minute`. Formatted as strings from
-     * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-     * "America/New_York" or "Asia/Tokyo".
-     * 
- * - * optional string time_zone = 6; - * - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - timeZone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The property's current timezone. Intended to be used to interpret
-     * time-based dimensions like `hour` and `minute`. Formatted as strings from
-     * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-     * "America/New_York" or "Asia/Tokyo".
-     * 
- * - * optional string time_zone = 6; - * - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - bitField0_ = (bitField0_ & ~0x00000004); - timeZone_ = getDefaultInstance().getTimeZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * The property's current timezone. Intended to be used to interpret
-     * time-based dimensions like `hour` and `minute`. Formatted as strings from
-     * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-     * "America/New_York" or "Asia/Tokyo".
-     * 
- * - * optional string time_zone = 6; - * - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bitField0_ |= 0x00000004; - timeZone_ = value; - onChanged(); - return this; - } - - private java.lang.Object emptyReason_ = ""; - /** - * - * - *
-     * If empty reason is specified, the report is empty for this reason.
-     * 
- * - * optional string empty_reason = 7; - * - * @return Whether the emptyReason field is set. - */ - public boolean hasEmptyReason() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * If empty reason is specified, the report is empty for this reason.
-     * 
- * - * optional string empty_reason = 7; - * - * @return The emptyReason. - */ - public java.lang.String getEmptyReason() { - java.lang.Object ref = emptyReason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emptyReason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * If empty reason is specified, the report is empty for this reason.
-     * 
- * - * optional string empty_reason = 7; - * - * @return The bytes for emptyReason. - */ - public com.google.protobuf.ByteString getEmptyReasonBytes() { - java.lang.Object ref = emptyReason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emptyReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * If empty reason is specified, the report is empty for this reason.
-     * 
- * - * optional string empty_reason = 7; - * - * @param value The emptyReason to set. - * @return This builder for chaining. - */ - public Builder setEmptyReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - emptyReason_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If empty reason is specified, the report is empty for this reason.
-     * 
- * - * optional string empty_reason = 7; - * - * @return This builder for chaining. - */ - public Builder clearEmptyReason() { - bitField0_ = (bitField0_ & ~0x00000008); - emptyReason_ = getDefaultInstance().getEmptyReason(); - onChanged(); - return this; - } - /** - * - * - *
-     * If empty reason is specified, the report is empty for this reason.
-     * 
- * - * optional string empty_reason = 7; - * - * @param value The bytes for emptyReason to set. - * @return This builder for chaining. - */ - public Builder setEmptyReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bitField0_ |= 0x00000008; - emptyReason_ = 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.analytics.data.v1beta.ResponseMetaData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.ResponseMetaData) - private static final com.google.analytics.data.v1beta.ResponseMetaData DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.ResponseMetaData(); - } - - public static com.google.analytics.data.v1beta.ResponseMetaData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseMetaData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseMetaData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaDataOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaDataOrBuilder.java deleted file mode 100644 index bbe87653..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaDataOrBuilder.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface ResponseMetaDataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.ResponseMetaData) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If true, indicates some buckets of dimension combinations are rolled into
-   * "(other)" row. This can happen for high cardinality reports.
-   * 
- * - * bool data_loss_from_other_row = 3; - * - * @return The dataLossFromOtherRow. - */ - boolean getDataLossFromOtherRow(); - - /** - * - * - *
-   * Describes the schema restrictions actively enforced in creating this
-   * report. To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - * - * @return Whether the schemaRestrictionResponse field is set. - */ - boolean hasSchemaRestrictionResponse(); - /** - * - * - *
-   * Describes the schema restrictions actively enforced in creating this
-   * report. To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - * - * @return The schemaRestrictionResponse. - */ - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - getSchemaRestrictionResponse(); - /** - * - * - *
-   * Describes the schema restrictions actively enforced in creating this
-   * report. To learn more, see [Access and data-restriction
-   * management](https://support.google.com/analytics/answer/10851388).
-   * 
- * - * - * optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * - */ - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseOrBuilder - getSchemaRestrictionResponseOrBuilder(); - - /** - * - * - *
-   * The currency code used in this report. Intended to be used in formatting
-   * currency metrics like `purchaseRevenue` for visualization. If currency_code
-   * was specified in the request, this response parameter will echo the request
-   * parameter; otherwise, this response parameter is the property's current
-   * currency_code.
-   * Currency codes are string encodings of currency types from the ISO 4217
-   * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-   * "EUR", "JPY". To learn more, see
-   * https://support.google.com/analytics/answer/9796179.
-   * 
- * - * optional string currency_code = 5; - * - * @return Whether the currencyCode field is set. - */ - boolean hasCurrencyCode(); - /** - * - * - *
-   * The currency code used in this report. Intended to be used in formatting
-   * currency metrics like `purchaseRevenue` for visualization. If currency_code
-   * was specified in the request, this response parameter will echo the request
-   * parameter; otherwise, this response parameter is the property's current
-   * currency_code.
-   * Currency codes are string encodings of currency types from the ISO 4217
-   * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-   * "EUR", "JPY". To learn more, see
-   * https://support.google.com/analytics/answer/9796179.
-   * 
- * - * optional string currency_code = 5; - * - * @return The currencyCode. - */ - java.lang.String getCurrencyCode(); - /** - * - * - *
-   * The currency code used in this report. Intended to be used in formatting
-   * currency metrics like `purchaseRevenue` for visualization. If currency_code
-   * was specified in the request, this response parameter will echo the request
-   * parameter; otherwise, this response parameter is the property's current
-   * currency_code.
-   * Currency codes are string encodings of currency types from the ISO 4217
-   * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
-   * "EUR", "JPY". To learn more, see
-   * https://support.google.com/analytics/answer/9796179.
-   * 
- * - * optional string currency_code = 5; - * - * @return The bytes for currencyCode. - */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); - - /** - * - * - *
-   * The property's current timezone. Intended to be used to interpret
-   * time-based dimensions like `hour` and `minute`. Formatted as strings from
-   * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-   * "America/New_York" or "Asia/Tokyo".
-   * 
- * - * optional string time_zone = 6; - * - * @return Whether the timeZone field is set. - */ - boolean hasTimeZone(); - /** - * - * - *
-   * The property's current timezone. Intended to be used to interpret
-   * time-based dimensions like `hour` and `minute`. Formatted as strings from
-   * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-   * "America/New_York" or "Asia/Tokyo".
-   * 
- * - * optional string time_zone = 6; - * - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - * - * - *
-   * The property's current timezone. Intended to be used to interpret
-   * time-based dimensions like `hour` and `minute`. Formatted as strings from
-   * the IANA Time Zone database (https://www.iana.org/time-zones); for example
-   * "America/New_York" or "Asia/Tokyo".
-   * 
- * - * optional string time_zone = 6; - * - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString getTimeZoneBytes(); - - /** - * - * - *
-   * If empty reason is specified, the report is empty for this reason.
-   * 
- * - * optional string empty_reason = 7; - * - * @return Whether the emptyReason field is set. - */ - boolean hasEmptyReason(); - /** - * - * - *
-   * If empty reason is specified, the report is empty for this reason.
-   * 
- * - * optional string empty_reason = 7; - * - * @return The emptyReason. - */ - java.lang.String getEmptyReason(); - /** - * - * - *
-   * If empty reason is specified, the report is empty for this reason.
-   * 
- * - * optional string empty_reason = 7; - * - * @return The bytes for emptyReason. - */ - com.google.protobuf.ByteString getEmptyReasonBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java deleted file mode 100644 index b8bf8c08..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Categories of data that you may be restricted from viewing on certain GA4
- * properties.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1beta.RestrictedMetricType} - */ -public enum RestrictedMetricType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified type.
-   * 
- * - * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - RESTRICTED_METRIC_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Cost metrics such as `adCost`.
-   * 
- * - * COST_DATA = 1; - */ - COST_DATA(1), - /** - * - * - *
-   * Revenue metrics such as `purchaseRevenue`.
-   * 
- * - * REVENUE_DATA = 2; - */ - REVENUE_DATA(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified type.
-   * 
- * - * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - public static final int RESTRICTED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Cost metrics such as `adCost`.
-   * 
- * - * COST_DATA = 1; - */ - public static final int COST_DATA_VALUE = 1; - /** - * - * - *
-   * Revenue metrics such as `purchaseRevenue`.
-   * 
- * - * REVENUE_DATA = 2; - */ - public static final int REVENUE_DATA_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 RestrictedMetricType 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 RestrictedMetricType forNumber(int value) { - switch (value) { - case 0: - return RESTRICTED_METRIC_TYPE_UNSPECIFIED; - case 1: - return COST_DATA; - case 2: - return REVENUE_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 RestrictedMetricType findValueByNumber(int number) { - return RestrictedMetricType.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.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(2); - } - - private static final RestrictedMetricType[] VALUES = values(); - - public static RestrictedMetricType 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 RestrictedMetricType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1beta.RestrictedMetricType) -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Row.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Row.java deleted file mode 100644 index d76dc002..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Row.java +++ /dev/null @@ -1,1538 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * Report data for each row.
- * For example if RunReportRequest contains:
- * ```none
- * "dimensions": [
- *   {
- *     "name": "eventName"
- *   },
- *   {
- *     "name": "countryId"
- *   }
- * ],
- * "metrics": [
- *   {
- *     "name": "eventCount"
- *   }
- * ]
- * ```
- * One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and
- * 15 as the eventCount, would be:
- * ```none
- * "dimensionValues": [
- *   {
- *     "value": "in_app_purchase"
- *   },
- *   {
- *     "value": "JP"
- *   }
- * ],
- * "metricValues": [
- *   {
- *     "value": "15"
- *   }
- * ]
- * ```
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Row} - */ -public final class Row extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Row) - RowOrBuilder { - private static final long serialVersionUID = 0L; - // Use Row.newBuilder() to construct. - private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Row() { - dimensionValues_ = java.util.Collections.emptyList(); - metricValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Row(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Row( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensionValues_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionValue.parser(), extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metricValues_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metricValues_.add( - input.readMessage( - com.google.analytics.data.v1beta.MetricValue.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metricValues_ = java.util.Collections.unmodifiableList(metricValues_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Row.class, - com.google.analytics.data.v1beta.Row.Builder.class); - } - - public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; - private java.util.List dimensionValues_; - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List getDimensionValuesList() { - return dimensionValues_; - } - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List - getDimensionValuesOrBuilderList() { - return dimensionValues_; - } - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValue getDimensionValues(int index) { - return dimensionValues_.get(index); - } - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - return dimensionValues_.get(index); - } - - public static final int METRIC_VALUES_FIELD_NUMBER = 2; - private java.util.List metricValues_; - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List getMetricValuesList() { - return metricValues_; - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesOrBuilderList() { - return metricValues_; - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - @java.lang.Override - public int getMetricValuesCount() { - return metricValues_.size(); - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricValue getMetricValues(int index) { - return metricValues_.get(index); - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricValueOrBuilder getMetricValuesOrBuilder(int index) { - return metricValues_.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 < dimensionValues_.size(); i++) { - output.writeMessage(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValues_.size(); i++) { - output.writeMessage(2, metricValues_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValues_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.Row)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.Row other = (com.google.analytics.data.v1beta.Row) obj; - - if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; - if (!getMetricValuesList().equals(other.getMetricValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionValuesCount() > 0) { - hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValuesList().hashCode(); - } - if (getMetricValuesCount() > 0) { - hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getMetricValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.Row parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Row parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Row parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Row parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.Row parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Row parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Row parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.Row parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.Row parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.Row prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Report data for each row.
-   * For example if RunReportRequest contains:
-   * ```none
-   * "dimensions": [
-   *   {
-   *     "name": "eventName"
-   *   },
-   *   {
-   *     "name": "countryId"
-   *   }
-   * ],
-   * "metrics": [
-   *   {
-   *     "name": "eventCount"
-   *   }
-   * ]
-   * ```
-   * One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and
-   * 15 as the eventCount, would be:
-   * ```none
-   * "dimensionValues": [
-   *   {
-   *     "value": "in_app_purchase"
-   *   },
-   *   {
-   *     "value": "JP"
-   *   }
-   * ],
-   * "metricValues": [
-   *   {
-   *     "value": "15"
-   *   }
-   * ]
-   * ```
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.Row} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Row) - com.google.analytics.data.v1beta.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.Row.class, - com.google.analytics.data.v1beta.Row.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.Row.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionValuesFieldBuilder(); - getMetricValuesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionValuesBuilder_.clear(); - } - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricValuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_Row_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Row getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.Row.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Row build() { - com.google.analytics.data.v1beta.Row result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Row buildPartial() { - com.google.analytics.data.v1beta.Row result = new com.google.analytics.data.v1beta.Row(this); - int from_bitField0_ = bitField0_; - if (dimensionValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionValues_ = dimensionValues_; - } else { - result.dimensionValues_ = dimensionValuesBuilder_.build(); - } - if (metricValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricValues_ = java.util.Collections.unmodifiableList(metricValues_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricValues_ = metricValues_; - } else { - result.metricValues_ = metricValuesBuilder_.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.analytics.data.v1beta.Row) { - return mergeFrom((com.google.analytics.data.v1beta.Row) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.Row other) { - if (other == com.google.analytics.data.v1beta.Row.getDefaultInstance()) return this; - if (dimensionValuesBuilder_ == null) { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValues_.isEmpty()) { - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionValuesIsMutable(); - dimensionValues_.addAll(other.dimensionValues_); - } - onChanged(); - } - } else { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValuesBuilder_.isEmpty()) { - dimensionValuesBuilder_.dispose(); - dimensionValuesBuilder_ = null; - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionValuesFieldBuilder() - : null; - } else { - dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); - } - } - } - if (metricValuesBuilder_ == null) { - if (!other.metricValues_.isEmpty()) { - if (metricValues_.isEmpty()) { - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricValuesIsMutable(); - metricValues_.addAll(other.metricValues_); - } - onChanged(); - } - } else { - if (!other.metricValues_.isEmpty()) { - if (metricValuesBuilder_.isEmpty()) { - metricValuesBuilder_.dispose(); - metricValuesBuilder_ = null; - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - metricValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricValuesFieldBuilder() - : null; - } else { - metricValuesBuilder_.addAllMessages(other.metricValues_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.Row parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Row) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List dimensionValues_ = - java.util.Collections.emptyList(); - - private void ensureDimensionValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = - new java.util.ArrayList( - dimensionValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionValue, - com.google.analytics.data.v1beta.DimensionValue.Builder, - com.google.analytics.data.v1beta.DimensionValueOrBuilder> - dimensionValuesBuilder_; - - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesList() { - if (dimensionValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionValues_); - } else { - return dimensionValuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public int getDimensionValuesCount() { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.size(); - } else { - return dimensionValuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue getDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.data.v1beta.DimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.data.v1beta.DimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1beta.DimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder addAllDimensionValues( - java.lang.Iterable values) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); - onChanged(); - } else { - dimensionValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder clearDimensionValues() { - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionValuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public Builder removeDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.remove(index); - onChanged(); - } else { - dimensionValuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue.Builder getDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesOrBuilderList() { - if (dimensionValuesBuilder_ != null) { - return dimensionValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionValues_); - } - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1beta.DimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DimensionValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested dimension values. In a PivotReport, dimension_values
-     * are only listed for dimensions included in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionValue, - com.google.analytics.data.v1beta.DimensionValue.Builder, - com.google.analytics.data.v1beta.DimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionValue, - com.google.analytics.data.v1beta.DimensionValue.Builder, - com.google.analytics.data.v1beta.DimensionValueOrBuilder>( - dimensionValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionValues_ = null; - } - return dimensionValuesBuilder_; - } - - private java.util.List metricValues_ = - java.util.Collections.emptyList(); - - private void ensureMetricValuesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricValues_ = - new java.util.ArrayList(metricValues_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricValue, - com.google.analytics.data.v1beta.MetricValue.Builder, - com.google.analytics.data.v1beta.MetricValueOrBuilder> - metricValuesBuilder_; - - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public java.util.List getMetricValuesList() { - if (metricValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricValues_); - } else { - return metricValuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public int getMetricValuesCount() { - if (metricValuesBuilder_ == null) { - return metricValues_.size(); - } else { - return metricValuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1beta.MetricValue getMetricValues(int index) { - if (metricValuesBuilder_ == null) { - return metricValues_.get(index); - } else { - return metricValuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder setMetricValues(int index, com.google.analytics.data.v1beta.MetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.set(index, value); - onChanged(); - } else { - metricValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.data.v1beta.MetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.set(index, builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder addMetricValues(com.google.analytics.data.v1beta.MetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.add(value); - onChanged(); - } else { - metricValuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder addMetricValues(int index, com.google.analytics.data.v1beta.MetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.add(index, value); - onChanged(); - } else { - metricValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder addMetricValues( - com.google.analytics.data.v1beta.MetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.data.v1beta.MetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(index, builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder addAllMetricValues( - java.lang.Iterable values) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValues_); - onChanged(); - } else { - metricValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder clearMetricValues() { - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricValuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public Builder removeMetricValues(int index) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.remove(index); - onChanged(); - } else { - metricValuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1beta.MetricValue.Builder getMetricValuesBuilder(int index) { - return getMetricValuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1beta.MetricValueOrBuilder getMetricValuesOrBuilder( - int index) { - if (metricValuesBuilder_ == null) { - return metricValues_.get(index); - } else { - return metricValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesOrBuilderList() { - if (metricValuesBuilder_ != null) { - return metricValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricValues_); - } - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1beta.MetricValue.Builder addMetricValuesBuilder() { - return getMetricValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MetricValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1beta.MetricValue.Builder addMetricValuesBuilder(int index) { - return getMetricValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.MetricValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesBuilderList() { - return getMetricValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricValue, - com.google.analytics.data.v1beta.MetricValue.Builder, - com.google.analytics.data.v1beta.MetricValueOrBuilder> - getMetricValuesFieldBuilder() { - if (metricValuesBuilder_ == null) { - metricValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricValue, - com.google.analytics.data.v1beta.MetricValue.Builder, - com.google.analytics.data.v1beta.MetricValueOrBuilder>( - metricValues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metricValues_ = null; - } - return metricValuesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.Row) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Row) - private static final com.google.analytics.data.v1beta.Row DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Row(); - } - - public static com.google.analytics.data.v1beta.Row getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Row(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.Row getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RowOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RowOrBuilder.java deleted file mode 100644 index 9a277d48..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RowOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/data.proto - -package com.google.analytics.data.v1beta; - -public interface RowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Row) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - java.util.List getDimensionValuesList(); - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1beta.DimensionValue getDimensionValues(int index); - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - int getDimensionValuesCount(); - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesOrBuilderList(); - /** - * - * - *
-   * List of requested dimension values. In a PivotReport, dimension_values
-   * are only listed for dimensions included in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1beta.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index); - - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - java.util.List getMetricValuesList(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - com.google.analytics.data.v1beta.MetricValue getMetricValues(int index); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - int getMetricValuesCount(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - java.util.List - getMetricValuesOrBuilderList(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - com.google.analytics.data.v1beta.MetricValueOrBuilder getMetricValuesOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java deleted file mode 100644 index 3830daad..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java +++ /dev/null @@ -1,4127 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The request to generate a pivot report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunPivotReportRequest} - */ -public final class RunPivotReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.RunPivotReportRequest) - RunPivotReportRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunPivotReportRequest.newBuilder() to construct. - private RunPivotReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunPivotReportRequest() { - property_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - dateRanges_ = java.util.Collections.emptyList(); - pivots_ = java.util.Collections.emptyList(); - currencyCode_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunPivotReportRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RunPivotReportRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - property_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metrics_.add( - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - dateRanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - dateRanges_.add( - input.readMessage( - com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - pivots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - pivots_.add( - input.readMessage( - com.google.analytics.data.v1beta.Pivot.parser(), extensionRegistry)); - break; - } - case 50: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 74: - { - com.google.analytics.data.v1beta.CohortSpec.Builder subBuilder = null; - if (cohortSpec_ != null) { - subBuilder = cohortSpec_.toBuilder(); - } - cohortSpec_ = - input.readMessage( - com.google.analytics.data.v1beta.CohortSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cohortSpec_); - cohortSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 80: - { - keepEmptyRows_ = input.readBool(); - break; - } - case 88: - { - returnPropertyQuota_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - pivots_ = java.util.Collections.unmodifiableList(pivots_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunPivotReportRequest.class, - com.google.analytics.data.v1beta.RunPivotReportRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int DATE_RANGES_FIELD_NUMBER = 4; - private java.util.List dateRanges_; - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List getDateRangesList() { - return dateRanges_; - } - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List - getDateRangesOrBuilderList() { - return dateRanges_; - } - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public int getDateRangesCount() { - return dateRanges_.size(); - } - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange getDateRanges(int index) { - return dateRanges_.get(index); - } - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - return dateRanges_.get(index); - } - - public static final int PIVOTS_FIELD_NUMBER = 5; - private java.util.List pivots_; - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - @java.lang.Override - public java.util.List getPivotsList() { - return pivots_; - } - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - @java.lang.Override - public java.util.List - getPivotsOrBuilderList() { - return pivots_; - } - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - @java.lang.Override - public int getPivotsCount() { - return pivots_.size(); - } - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Pivot getPivots(int index) { - return pivots_.get(index); - } - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PivotOrBuilder getPivotsOrBuilder(int index) { - return pivots_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 6; - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 7; - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - public static final int CURRENCY_CODE_FIELD_NUMBER = 8; - private volatile java.lang.Object currencyCode_; - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 8; - * - * @return The currencyCode. - */ - @java.lang.Override - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } - } - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 8; - * - * @return The bytes for currencyCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COHORT_SPEC_FIELD_NUMBER = 9; - private com.google.analytics.data.v1beta.CohortSpec cohortSpec_; - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * - * @return Whether the cohortSpec field is set. - */ - @java.lang.Override - public boolean hasCohortSpec() { - return cohortSpec_ != null; - } - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * - * @return The cohortSpec. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpec getCohortSpec() { - return cohortSpec_ == null - ? com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance() - : cohortSpec_; - } - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuilder() { - return getCohortSpec(); - } - - public static final int KEEP_EMPTY_ROWS_FIELD_NUMBER = 10; - private boolean keepEmptyRows_; - /** - * - * - *
-   * If false or unspecified, each row with all metrics equal to 0 will not be
-   * returned. If true, these rows will be returned if they are not separately
-   * removed by a filter.
-   * 
- * - * bool keep_empty_rows = 10; - * - * @return The keepEmptyRows. - */ - @java.lang.Override - public boolean getKeepEmptyRows() { - return keepEmptyRows_; - } - - public static final int RETURN_PROPERTY_QUOTA_FIELD_NUMBER = 11; - private boolean returnPropertyQuota_; - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 11; - * - * @return The returnPropertyQuota. - */ - @java.lang.Override - public boolean getReturnPropertyQuota() { - return returnPropertyQuota_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - output.writeMessage(4, dateRanges_.get(i)); - } - for (int i = 0; i < pivots_.size(); i++) { - output.writeMessage(5, pivots_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(6, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(7, getMetricFilter()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); - } - if (cohortSpec_ != null) { - output.writeMessage(9, getCohortSpec()); - } - if (keepEmptyRows_ != false) { - output.writeBool(10, keepEmptyRows_); - } - if (returnPropertyQuota_ != false) { - output.writeBool(11, returnPropertyQuota_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dateRanges_.get(i)); - } - for (int i = 0; i < pivots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pivots_.get(i)); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetricFilter()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); - } - if (cohortSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCohortSpec()); - } - if (keepEmptyRows_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, keepEmptyRows_); - } - if (returnPropertyQuota_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnPropertyQuota_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.RunPivotReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.RunPivotReportRequest other = - (com.google.analytics.data.v1beta.RunPivotReportRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getDateRangesList().equals(other.getDateRangesList())) return false; - if (!getPivotsList().equals(other.getPivotsList())) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; - } - if (hasMetricFilter() != other.hasMetricFilter()) return false; - if (hasMetricFilter()) { - if (!getMetricFilter().equals(other.getMetricFilter())) return false; - } - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; - if (hasCohortSpec() != other.hasCohortSpec()) return false; - if (hasCohortSpec()) { - if (!getCohortSpec().equals(other.getCohortSpec())) return false; - } - if (getKeepEmptyRows() != other.getKeepEmptyRows()) return false; - if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (getDateRangesCount() > 0) { - hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getDateRangesList().hashCode(); - } - if (getPivotsCount() > 0) { - hash = (37 * hash) + PIVOTS_FIELD_NUMBER; - hash = (53 * hash) + getPivotsList().hashCode(); - } - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - if (hasMetricFilter()) { - hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getMetricFilter().hashCode(); - } - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); - if (hasCohortSpec()) { - hash = (37 * hash) + COHORT_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getCohortSpec().hashCode(); - } - hash = (37 * hash) + KEEP_EMPTY_ROWS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepEmptyRows()); - hash = (37 * hash) + RETURN_PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPropertyQuota()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.RunPivotReportRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request to generate a pivot report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunPivotReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.RunPivotReportRequest) - com.google.analytics.data.v1beta.RunPivotReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunPivotReportRequest.class, - com.google.analytics.data.v1beta.RunPivotReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.RunPivotReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - getDateRangesFieldBuilder(); - getPivotsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionsBuilder_.clear(); - } - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricsBuilder_.clear(); - } - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - dateRangesBuilder_.clear(); - } - if (pivotsBuilder_ == null) { - pivots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - pivotsBuilder_.clear(); - } - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - currencyCode_ = ""; - - if (cohortSpecBuilder_ == null) { - cohortSpec_ = null; - } else { - cohortSpec_ = null; - cohortSpecBuilder_ = null; - } - keepEmptyRows_ = false; - - returnPropertyQuota_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.RunPivotReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportRequest build() { - com.google.analytics.data.v1beta.RunPivotReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportRequest buildPartial() { - com.google.analytics.data.v1beta.RunPivotReportRequest result = - new com.google.analytics.data.v1beta.RunPivotReportRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.build(); - } - if (pivotsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - pivots_ = java.util.Collections.unmodifiableList(pivots_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.pivots_ = pivots_; - } else { - result.pivots_ = pivotsBuilder_.build(); - } - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - result.currencyCode_ = currencyCode_; - if (cohortSpecBuilder_ == null) { - result.cohortSpec_ = cohortSpec_; - } else { - result.cohortSpec_ = cohortSpecBuilder_.build(); - } - result.keepEmptyRows_ = keepEmptyRows_; - result.returnPropertyQuota_ = returnPropertyQuota_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.RunPivotReportRequest) { - return mergeFrom((com.google.analytics.data.v1beta.RunPivotReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.RunPivotReportRequest other) { - if (other == com.google.analytics.data.v1beta.RunPivotReportRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionsFieldBuilder() - : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDateRangesFieldBuilder() - : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - if (pivotsBuilder_ == null) { - if (!other.pivots_.isEmpty()) { - if (pivots_.isEmpty()) { - pivots_ = other.pivots_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePivotsIsMutable(); - pivots_.addAll(other.pivots_); - } - onChanged(); - } - } else { - if (!other.pivots_.isEmpty()) { - if (pivotsBuilder_.isEmpty()) { - pivotsBuilder_.dispose(); - pivotsBuilder_ = null; - pivots_ = other.pivots_; - bitField0_ = (bitField0_ & ~0x00000008); - pivotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPivotsFieldBuilder() - : null; - } else { - pivotsBuilder_.addAllMessages(other.pivots_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (!other.getCurrencyCode().isEmpty()) { - currencyCode_ = other.currencyCode_; - onChanged(); - } - if (other.hasCohortSpec()) { - mergeCohortSpec(other.getCohortSpec()); - } - if (other.getKeepEmptyRows() != false) { - setKeepEmptyRows(other.getKeepEmptyRows()); - } - if (other.getReturnPropertyQuota() != false) { - setReturnPropertyQuota(other.getReturnPropertyQuota()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.RunPivotReportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunPivotReportRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(dimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder getDimensionsBuilder(int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested. All defined dimensions must be used by one of the
-     * following: dimension_expression, dimension_filter, pivots, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder>( - dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested, at least one metric needs to be specified. All
-     * defined metrics must be used by one of the following: metric_expression,
-     * metric_filter, order_bys.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List dateRanges_ = - java.util.Collections.emptyList(); - - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - dateRanges_ = - new java.util.ArrayList(dateRanges_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder> - dateRangesBuilder_; - - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public java.util.List getDateRangesList() { - if (dateRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dateRanges_); - } else { - return dateRangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public int getDateRangesCount() { - if (dateRangesBuilder_ == null) { - return dateRanges_.size(); - } else { - return dateRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange getDateRanges(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder setDateRanges(int index, com.google.analytics.data.v1beta.DateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.set(index, value); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges(com.google.analytics.data.v1beta.DateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges(int index, com.google.analytics.data.v1beta.DateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(index, value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges( - com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addAllDateRanges( - java.lang.Iterable values) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); - onChanged(); - } else { - dateRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - dateRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder removeDateRanges(int index) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.remove(index); - onChanged(); - } else { - dateRangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange.Builder getDateRangesBuilder(int index) { - return getDateRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public java.util.List - getDateRangesOrBuilderList() { - if (dateRangesBuilder_ != null) { - return dateRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dateRanges_); - } - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DateRange.getDefaultInstance()); - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange.Builder addDateRangesBuilder(int index) { - return getDateRangesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DateRange.getDefaultInstance()); - } - /** - * - * - *
-     * The date range to retrieve event data for the report. If multiple date
-     * ranges are specified, event data from each date range is used in the
-     * report. A special dimension with field name "dateRange" can be included in
-     * a Pivot's field names; if included, the report compares between date
-     * ranges. In a cohort request, this `dateRanges` must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder>( - dateRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private java.util.List pivots_ = - java.util.Collections.emptyList(); - - private void ensurePivotsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - pivots_ = new java.util.ArrayList(pivots_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Pivot, - com.google.analytics.data.v1beta.Pivot.Builder, - com.google.analytics.data.v1beta.PivotOrBuilder> - pivotsBuilder_; - - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public java.util.List getPivotsList() { - if (pivotsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pivots_); - } else { - return pivotsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public int getPivotsCount() { - if (pivotsBuilder_ == null) { - return pivots_.size(); - } else { - return pivotsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public com.google.analytics.data.v1beta.Pivot getPivots(int index) { - if (pivotsBuilder_ == null) { - return pivots_.get(index); - } else { - return pivotsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder setPivots(int index, com.google.analytics.data.v1beta.Pivot value) { - if (pivotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotsIsMutable(); - pivots_.set(index, value); - onChanged(); - } else { - pivotsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder setPivots( - int index, com.google.analytics.data.v1beta.Pivot.Builder builderForValue) { - if (pivotsBuilder_ == null) { - ensurePivotsIsMutable(); - pivots_.set(index, builderForValue.build()); - onChanged(); - } else { - pivotsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder addPivots(com.google.analytics.data.v1beta.Pivot value) { - if (pivotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotsIsMutable(); - pivots_.add(value); - onChanged(); - } else { - pivotsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder addPivots(int index, com.google.analytics.data.v1beta.Pivot value) { - if (pivotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotsIsMutable(); - pivots_.add(index, value); - onChanged(); - } else { - pivotsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder addPivots(com.google.analytics.data.v1beta.Pivot.Builder builderForValue) { - if (pivotsBuilder_ == null) { - ensurePivotsIsMutable(); - pivots_.add(builderForValue.build()); - onChanged(); - } else { - pivotsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder addPivots( - int index, com.google.analytics.data.v1beta.Pivot.Builder builderForValue) { - if (pivotsBuilder_ == null) { - ensurePivotsIsMutable(); - pivots_.add(index, builderForValue.build()); - onChanged(); - } else { - pivotsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder addAllPivots( - java.lang.Iterable values) { - if (pivotsBuilder_ == null) { - ensurePivotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pivots_); - onChanged(); - } else { - pivotsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder clearPivots() { - if (pivotsBuilder_ == null) { - pivots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - pivotsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public Builder removePivots(int index) { - if (pivotsBuilder_ == null) { - ensurePivotsIsMutable(); - pivots_.remove(index); - onChanged(); - } else { - pivotsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public com.google.analytics.data.v1beta.Pivot.Builder getPivotsBuilder(int index) { - return getPivotsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public com.google.analytics.data.v1beta.PivotOrBuilder getPivotsOrBuilder(int index) { - if (pivotsBuilder_ == null) { - return pivots_.get(index); - } else { - return pivotsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public java.util.List - getPivotsOrBuilderList() { - if (pivotsBuilder_ != null) { - return pivotsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pivots_); - } - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public com.google.analytics.data.v1beta.Pivot.Builder addPivotsBuilder() { - return getPivotsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Pivot.getDefaultInstance()); - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public com.google.analytics.data.v1beta.Pivot.Builder addPivotsBuilder(int index) { - return getPivotsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Pivot.getDefaultInstance()); - } - /** - * - * - *
-     * Describes the visual format of the report's dimensions in columns or rows.
-     * The union of the fieldNames (dimension names) in all pivots must be a
-     * subset of dimension names defined in Dimensions. No two pivots can share a
-     * dimension. A dimension is only visible if it appears in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - public java.util.List getPivotsBuilderList() { - return getPivotsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Pivot, - com.google.analytics.data.v1beta.Pivot.Builder, - com.google.analytics.data.v1beta.PivotOrBuilder> - getPivotsFieldBuilder() { - if (pivotsBuilder_ == null) { - pivotsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Pivot, - com.google.analytics.data.v1beta.Pivot.Builder, - com.google.analytics.data.v1beta.PivotOrBuilder>( - pivots_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - pivots_ = null; - } - return pivotsBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - dimensionFilterBuilder_; - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return dimensionFilterBuilder_ != null || dimensionFilter_ != null; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(dimensionFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionFilter_ = value; - } - onChanged(); - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - public Builder clearDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - onChanged(); - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFilterBuilder() { - - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - metricFilterBuilder_; - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return metricFilterBuilder_ != null || metricFilter_ != null; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - onChanged(); - } else { - metricFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - onChanged(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(metricFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - metricFilter_ = value; - } - onChanged(); - } else { - metricFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - public Builder clearMetricFilter() { - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - onChanged(); - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getMetricFilterBuilder() { - - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private java.lang.Object currencyCode_ = ""; - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 8; - * - * @return The currencyCode. - */ - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 8; - * - * @return The bytes for currencyCode. - */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 8; - * - * @param value The currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currencyCode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 8; - * - * @return This builder for chaining. - */ - public Builder clearCurrencyCode() { - - currencyCode_ = getDefaultInstance().getCurrencyCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 8; - * - * @param value The bytes for currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currencyCode_ = value; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.CohortSpec cohortSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortSpec, - com.google.analytics.data.v1beta.CohortSpec.Builder, - com.google.analytics.data.v1beta.CohortSpecOrBuilder> - cohortSpecBuilder_; - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * - * @return Whether the cohortSpec field is set. - */ - public boolean hasCohortSpec() { - return cohortSpecBuilder_ != null || cohortSpec_ != null; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * - * @return The cohortSpec. - */ - public com.google.analytics.data.v1beta.CohortSpec getCohortSpec() { - if (cohortSpecBuilder_ == null) { - return cohortSpec_ == null - ? com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance() - : cohortSpec_; - } else { - return cohortSpecBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - public Builder setCohortSpec(com.google.analytics.data.v1beta.CohortSpec value) { - if (cohortSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cohortSpec_ = value; - onChanged(); - } else { - cohortSpecBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - public Builder setCohortSpec( - com.google.analytics.data.v1beta.CohortSpec.Builder builderForValue) { - if (cohortSpecBuilder_ == null) { - cohortSpec_ = builderForValue.build(); - onChanged(); - } else { - cohortSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - public Builder mergeCohortSpec(com.google.analytics.data.v1beta.CohortSpec value) { - if (cohortSpecBuilder_ == null) { - if (cohortSpec_ != null) { - cohortSpec_ = - com.google.analytics.data.v1beta.CohortSpec.newBuilder(cohortSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - cohortSpec_ = value; - } - onChanged(); - } else { - cohortSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - public Builder clearCohortSpec() { - if (cohortSpecBuilder_ == null) { - cohortSpec_ = null; - onChanged(); - } else { - cohortSpec_ = null; - cohortSpecBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - public com.google.analytics.data.v1beta.CohortSpec.Builder getCohortSpecBuilder() { - - onChanged(); - return getCohortSpecFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuilder() { - if (cohortSpecBuilder_ != null) { - return cohortSpecBuilder_.getMessageOrBuilder(); - } else { - return cohortSpec_ == null - ? com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance() - : cohortSpec_; - } - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortSpec, - com.google.analytics.data.v1beta.CohortSpec.Builder, - com.google.analytics.data.v1beta.CohortSpecOrBuilder> - getCohortSpecFieldBuilder() { - if (cohortSpecBuilder_ == null) { - cohortSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortSpec, - com.google.analytics.data.v1beta.CohortSpec.Builder, - com.google.analytics.data.v1beta.CohortSpecOrBuilder>( - getCohortSpec(), getParentForChildren(), isClean()); - cohortSpec_ = null; - } - return cohortSpecBuilder_; - } - - private boolean keepEmptyRows_; - /** - * - * - *
-     * If false or unspecified, each row with all metrics equal to 0 will not be
-     * returned. If true, these rows will be returned if they are not separately
-     * removed by a filter.
-     * 
- * - * bool keep_empty_rows = 10; - * - * @return The keepEmptyRows. - */ - @java.lang.Override - public boolean getKeepEmptyRows() { - return keepEmptyRows_; - } - /** - * - * - *
-     * If false or unspecified, each row with all metrics equal to 0 will not be
-     * returned. If true, these rows will be returned if they are not separately
-     * removed by a filter.
-     * 
- * - * bool keep_empty_rows = 10; - * - * @param value The keepEmptyRows to set. - * @return This builder for chaining. - */ - public Builder setKeepEmptyRows(boolean value) { - - keepEmptyRows_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If false or unspecified, each row with all metrics equal to 0 will not be
-     * returned. If true, these rows will be returned if they are not separately
-     * removed by a filter.
-     * 
- * - * bool keep_empty_rows = 10; - * - * @return This builder for chaining. - */ - public Builder clearKeepEmptyRows() { - - keepEmptyRows_ = false; - onChanged(); - return this; - } - - private boolean returnPropertyQuota_; - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 11; - * - * @return The returnPropertyQuota. - */ - @java.lang.Override - public boolean getReturnPropertyQuota() { - return returnPropertyQuota_; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 11; - * - * @param value The returnPropertyQuota to set. - * @return This builder for chaining. - */ - public Builder setReturnPropertyQuota(boolean value) { - - returnPropertyQuota_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 11; - * - * @return This builder for chaining. - */ - public Builder clearReturnPropertyQuota() { - - returnPropertyQuota_ = 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.analytics.data.v1beta.RunPivotReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.RunPivotReportRequest) - private static final com.google.analytics.data.v1beta.RunPivotReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.RunPivotReportRequest(); - } - - public static com.google.analytics.data.v1beta.RunPivotReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPivotReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunPivotReportRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java deleted file mode 100644 index 7e9d0768..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java +++ /dev/null @@ -1,493 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface RunPivotReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.RunPivotReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.Dimension getDimensions(int index); - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions requested. All defined dimensions must be used by one of the
-   * following: dimension_expression, dimension_filter, pivots, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.Metric getMetrics(int index); - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics requested, at least one metric needs to be specified. All
-   * defined metrics must be used by one of the following: metric_expression,
-   * metric_filter, order_bys.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - java.util.List getDateRangesList(); - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - com.google.analytics.data.v1beta.DateRange getDateRanges(int index); - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - int getDateRangesCount(); - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - java.util.List - getDateRangesOrBuilderList(); - /** - * - * - *
-   * The date range to retrieve event data for the report. If multiple date
-   * ranges are specified, event data from each date range is used in the
-   * report. A special dimension with field name "dateRange" can be included in
-   * a Pivot's field names; if included, the report compares between date
-   * ranges. In a cohort request, this `dateRanges` must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilder(int index); - - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - java.util.List getPivotsList(); - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - com.google.analytics.data.v1beta.Pivot getPivots(int index); - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - int getPivotsCount(); - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - java.util.List - getPivotsOrBuilderList(); - /** - * - * - *
-   * Describes the visual format of the report's dimensions in columns or rows.
-   * The union of the fieldNames (dimension names) in all pivots must be a
-   * subset of dimension names defined in Dimensions. No two pivots can share a
-   * dimension. A dimension is only visible if it appears in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - com.google.analytics.data.v1beta.PivotOrBuilder getPivotsOrBuilder(int index); - - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getDimensionFilter(); - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 8; - * - * @return The currencyCode. - */ - java.lang.String getCurrencyCode(); - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 8; - * - * @return The bytes for currencyCode. - */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); - - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * - * @return Whether the cohortSpec field is set. - */ - boolean hasCohortSpec(); - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * - * @return The cohortSpec. - */ - com.google.analytics.data.v1beta.CohortSpec getCohortSpec(); - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuilder(); - - /** - * - * - *
-   * If false or unspecified, each row with all metrics equal to 0 will not be
-   * returned. If true, these rows will be returned if they are not separately
-   * removed by a filter.
-   * 
- * - * bool keep_empty_rows = 10; - * - * @return The keepEmptyRows. - */ - boolean getKeepEmptyRows(); - - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 11; - * - * @return The returnPropertyQuota. - */ - boolean getReturnPropertyQuota(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java deleted file mode 100644 index 7eff2522..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java +++ /dev/null @@ -1,4529 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The response pivot report table corresponding to a pivot request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunPivotReportResponse} - */ -public final class RunPivotReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.RunPivotReportResponse) - RunPivotReportResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunPivotReportResponse.newBuilder() to construct. - private RunPivotReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunPivotReportResponse() { - pivotHeaders_ = java.util.Collections.emptyList(); - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - aggregates_ = java.util.Collections.emptyList(); - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunPivotReportResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RunPivotReportResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pivotHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pivotHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.PivotHeader.parser(), extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - dimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionHeader.parser(), - extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metricHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metricHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - rows_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - aggregates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - aggregates_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 50: - { - com.google.analytics.data.v1beta.ResponseMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.analytics.data.v1beta.ResponseMetaData.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.analytics.data.v1beta.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1beta.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pivotHeaders_ = java.util.Collections.unmodifiableList(pivotHeaders_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - aggregates_ = java.util.Collections.unmodifiableList(aggregates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunPivotReportResponse.class, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder.class); - } - - public static final int PIVOT_HEADERS_FIELD_NUMBER = 1; - private java.util.List pivotHeaders_; - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public java.util.List getPivotHeadersList() { - return pivotHeaders_; - } - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public java.util.List - getPivotHeadersOrBuilderList() { - return pivotHeaders_; - } - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public int getPivotHeadersCount() { - return pivotHeaders_.size(); - } - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PivotHeader getPivotHeaders(int index) { - return pivotHeaders_.get(index); - } - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PivotHeaderOrBuilder getPivotHeadersOrBuilder(int index) { - return pivotHeaders_.get(index); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 2; - private java.util.List dimensionHeaders_; - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 3; - private java.util.List metricHeaders_; - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - @java.lang.Override - public java.util.List getMetricHeadersList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 4; - private java.util.List rows_; - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int AGGREGATES_FIELD_NUMBER = 5; - private java.util.List aggregates_; - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - @java.lang.Override - public java.util.List getAggregatesList() { - return aggregates_; - } - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - @java.lang.Override - public java.util.List - getAggregatesOrBuilderList() { - return aggregates_; - } - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - @java.lang.Override - public int getAggregatesCount() { - return aggregates_.size(); - } - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getAggregates(int index) { - return aggregates_.get(index); - } - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getAggregatesOrBuilder(int index) { - return aggregates_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.analytics.data.v1beta.ResponseMetaData metadata_; - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData getMetadata() { - return metadata_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int PROPERTY_QUOTA_FIELD_NUMBER = 7; - private com.google.analytics.data.v1beta.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * - * @return Whether the propertyQuota field is set. - */ - @java.lang.Override - public boolean hasPropertyQuota() { - return propertyQuota_ != null; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - public static final int KIND_FIELD_NUMBER = 8; - private volatile java.lang.Object kind_; - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 8; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 8; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < pivotHeaders_.size(); i++) { - output.writeMessage(1, pivotHeaders_.get(i)); - } - for (int i = 0; i < dimensionHeaders_.size(); i++) { - output.writeMessage(2, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - output.writeMessage(3, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(4, rows_.get(i)); - } - for (int i = 0; i < aggregates_.size(); i++) { - output.writeMessage(5, aggregates_.get(i)); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - if (propertyQuota_ != null) { - output.writeMessage(7, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pivotHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pivotHeaders_.get(i)); - } - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, rows_.get(i)); - } - for (int i = 0; i < aggregates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, aggregates_.get(i)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); - } - if (propertyQuota_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kind_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.RunPivotReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.RunPivotReportResponse other = - (com.google.analytics.data.v1beta.RunPivotReportResponse) obj; - - if (!getPivotHeadersList().equals(other.getPivotHeadersList())) return false; - if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; - if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; - if (!getRowsList().equals(other.getRowsList())) return false; - if (!getAggregatesList().equals(other.getAggregatesList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (hasPropertyQuota() != other.hasPropertyQuota()) return false; - if (hasPropertyQuota()) { - if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; - } - if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPivotHeadersCount() > 0) { - hash = (37 * hash) + PIVOT_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getPivotHeadersList().hashCode(); - } - if (getDimensionHeadersCount() > 0) { - hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionHeadersList().hashCode(); - } - if (getMetricHeadersCount() > 0) { - hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getMetricHeadersList().hashCode(); - } - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - if (getAggregatesCount() > 0) { - hash = (37 * hash) + AGGREGATES_FIELD_NUMBER; - hash = (53 * hash) + getAggregatesList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasPropertyQuota()) { - hash = (37 * hash) + PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + getPropertyQuota().hashCode(); - } - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.RunPivotReportResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The response pivot report table corresponding to a pivot request.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunPivotReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.RunPivotReportResponse) - com.google.analytics.data.v1beta.RunPivotReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunPivotReportResponse.class, - com.google.analytics.data.v1beta.RunPivotReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.RunPivotReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotHeadersFieldBuilder(); - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - getAggregatesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (pivotHeadersBuilder_ == null) { - pivotHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pivotHeadersBuilder_.clear(); - } - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - dimensionHeadersBuilder_.clear(); - } - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - metricHeadersBuilder_.clear(); - } - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - rowsBuilder_.clear(); - } - if (aggregatesBuilder_ == null) { - aggregates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - aggregatesBuilder_.clear(); - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = null; - } else { - propertyQuota_ = null; - propertyQuotaBuilder_ = null; - } - kind_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.RunPivotReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportResponse build() { - com.google.analytics.data.v1beta.RunPivotReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportResponse buildPartial() { - com.google.analytics.data.v1beta.RunPivotReportResponse result = - new com.google.analytics.data.v1beta.RunPivotReportResponse(this); - int from_bitField0_ = bitField0_; - if (pivotHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pivotHeaders_ = java.util.Collections.unmodifiableList(pivotHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pivotHeaders_ = pivotHeaders_; - } else { - result.pivotHeaders_ = pivotHeadersBuilder_.build(); - } - if (dimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dimensionHeaders_ = dimensionHeaders_; - } else { - result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); - } - if (metricHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metricHeaders_ = metricHeaders_; - } else { - result.metricHeaders_ = metricHeadersBuilder_.build(); - } - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - if (aggregatesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - aggregates_ = java.util.Collections.unmodifiableList(aggregates_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.aggregates_ = aggregates_; - } else { - result.aggregates_ = aggregatesBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (propertyQuotaBuilder_ == null) { - result.propertyQuota_ = propertyQuota_; - } else { - result.propertyQuota_ = propertyQuotaBuilder_.build(); - } - result.kind_ = kind_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.RunPivotReportResponse) { - return mergeFrom((com.google.analytics.data.v1beta.RunPivotReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.RunPivotReportResponse other) { - if (other == com.google.analytics.data.v1beta.RunPivotReportResponse.getDefaultInstance()) - return this; - if (pivotHeadersBuilder_ == null) { - if (!other.pivotHeaders_.isEmpty()) { - if (pivotHeaders_.isEmpty()) { - pivotHeaders_ = other.pivotHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePivotHeadersIsMutable(); - pivotHeaders_.addAll(other.pivotHeaders_); - } - onChanged(); - } - } else { - if (!other.pivotHeaders_.isEmpty()) { - if (pivotHeadersBuilder_.isEmpty()) { - pivotHeadersBuilder_.dispose(); - pivotHeadersBuilder_ = null; - pivotHeaders_ = other.pivotHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - pivotHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPivotHeadersFieldBuilder() - : null; - } else { - pivotHeadersBuilder_.addAllMessages(other.pivotHeaders_); - } - } - } - if (dimensionHeadersBuilder_ == null) { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeaders_.isEmpty()) { - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.addAll(other.dimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeadersBuilder_.isEmpty()) { - dimensionHeadersBuilder_.dispose(); - dimensionHeadersBuilder_ = null; - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - dimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionHeadersFieldBuilder() - : null; - } else { - dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); - } - } - } - if (metricHeadersBuilder_ == null) { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeaders_.isEmpty()) { - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricHeadersIsMutable(); - metricHeaders_.addAll(other.metricHeaders_); - } - onChanged(); - } - } else { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeadersBuilder_.isEmpty()) { - metricHeadersBuilder_.dispose(); - metricHeadersBuilder_ = null; - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000004); - metricHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricHeadersFieldBuilder() - : null; - } else { - metricHeadersBuilder_.addAllMessages(other.metricHeaders_); - } - } - } - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000008); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowsFieldBuilder() - : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (aggregatesBuilder_ == null) { - if (!other.aggregates_.isEmpty()) { - if (aggregates_.isEmpty()) { - aggregates_ = other.aggregates_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAggregatesIsMutable(); - aggregates_.addAll(other.aggregates_); - } - onChanged(); - } - } else { - if (!other.aggregates_.isEmpty()) { - if (aggregatesBuilder_.isEmpty()) { - aggregatesBuilder_.dispose(); - aggregatesBuilder_ = null; - aggregates_ = other.aggregates_; - bitField0_ = (bitField0_ & ~0x00000010); - aggregatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAggregatesFieldBuilder() - : null; - } else { - aggregatesBuilder_.addAllMessages(other.aggregates_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasPropertyQuota()) { - mergePropertyQuota(other.getPropertyQuota()); - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.RunPivotReportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunPivotReportResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List pivotHeaders_ = - java.util.Collections.emptyList(); - - private void ensurePivotHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pivotHeaders_ = - new java.util.ArrayList(pivotHeaders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.PivotHeader, - com.google.analytics.data.v1beta.PivotHeader.Builder, - com.google.analytics.data.v1beta.PivotHeaderOrBuilder> - pivotHeadersBuilder_; - - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public java.util.List getPivotHeadersList() { - if (pivotHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(pivotHeaders_); - } else { - return pivotHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public int getPivotHeadersCount() { - if (pivotHeadersBuilder_ == null) { - return pivotHeaders_.size(); - } else { - return pivotHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1beta.PivotHeader getPivotHeaders(int index) { - if (pivotHeadersBuilder_ == null) { - return pivotHeaders_.get(index); - } else { - return pivotHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder setPivotHeaders(int index, com.google.analytics.data.v1beta.PivotHeader value) { - if (pivotHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotHeadersIsMutable(); - pivotHeaders_.set(index, value); - onChanged(); - } else { - pivotHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder setPivotHeaders( - int index, com.google.analytics.data.v1beta.PivotHeader.Builder builderForValue) { - if (pivotHeadersBuilder_ == null) { - ensurePivotHeadersIsMutable(); - pivotHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - pivotHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders(com.google.analytics.data.v1beta.PivotHeader value) { - if (pivotHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotHeadersIsMutable(); - pivotHeaders_.add(value); - onChanged(); - } else { - pivotHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders(int index, com.google.analytics.data.v1beta.PivotHeader value) { - if (pivotHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePivotHeadersIsMutable(); - pivotHeaders_.add(index, value); - onChanged(); - } else { - pivotHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders( - com.google.analytics.data.v1beta.PivotHeader.Builder builderForValue) { - if (pivotHeadersBuilder_ == null) { - ensurePivotHeadersIsMutable(); - pivotHeaders_.add(builderForValue.build()); - onChanged(); - } else { - pivotHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders( - int index, com.google.analytics.data.v1beta.PivotHeader.Builder builderForValue) { - if (pivotHeadersBuilder_ == null) { - ensurePivotHeadersIsMutable(); - pivotHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - pivotHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder addAllPivotHeaders( - java.lang.Iterable values) { - if (pivotHeadersBuilder_ == null) { - ensurePivotHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pivotHeaders_); - onChanged(); - } else { - pivotHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder clearPivotHeaders() { - if (pivotHeadersBuilder_ == null) { - pivotHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pivotHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public Builder removePivotHeaders(int index) { - if (pivotHeadersBuilder_ == null) { - ensurePivotHeadersIsMutable(); - pivotHeaders_.remove(index); - onChanged(); - } else { - pivotHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1beta.PivotHeader.Builder getPivotHeadersBuilder(int index) { - return getPivotHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1beta.PivotHeaderOrBuilder getPivotHeadersOrBuilder( - int index) { - if (pivotHeadersBuilder_ == null) { - return pivotHeaders_.get(index); - } else { - return pivotHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public java.util.List - getPivotHeadersOrBuilderList() { - if (pivotHeadersBuilder_ != null) { - return pivotHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pivotHeaders_); - } - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1beta.PivotHeader.Builder addPivotHeadersBuilder() { - return getPivotHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.PivotHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1beta.PivotHeader.Builder addPivotHeadersBuilder(int index) { - return getPivotHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.PivotHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Summarizes the columns and rows created by a pivot. Each pivot in the
-     * request produces one header in the response. If we have a request like
-     * this:
-     *     "pivots": [{
-     *       "fieldNames": ["country",
-     *         "city"]
-     *     },
-     *     {
-     *       "fieldNames": "eventName"
-     *     }]
-     * We will have the following `pivotHeaders` in the response:
-     *     "pivotHeaders" : [{
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [
-     *            { "value": "United Kingdom" },
-     *            { "value": "London" }
-     *          ]
-     *       },
-     *       {
-     *         "dimensionValues": [
-     *         { "value": "Japan" },
-     *         { "value": "Osaka" }
-     *         ]
-     *       }]
-     *     },
-     *     {
-     *       "dimensionHeaders": [{
-     *         "dimensionValues": [{ "value": "session_start" }]
-     *       },
-     *       {
-     *         "dimensionValues": [{ "value": "scroll" }]
-     *       }]
-     *     }]
-     * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - public java.util.List - getPivotHeadersBuilderList() { - return getPivotHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.PivotHeader, - com.google.analytics.data.v1beta.PivotHeader.Builder, - com.google.analytics.data.v1beta.PivotHeaderOrBuilder> - getPivotHeadersFieldBuilder() { - if (pivotHeadersBuilder_ == null) { - pivotHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.PivotHeader, - com.google.analytics.data.v1beta.PivotHeader.Builder, - com.google.analytics.data.v1beta.PivotHeaderOrBuilder>( - pivotHeaders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - pivotHeaders_ = null; - } - return pivotHeadersBuilder_; - } - - private java.util.List dimensionHeaders_ = - java.util.Collections.emptyList(); - - private void ensureDimensionHeadersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList( - dimensionHeaders_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public java.util.List - getDimensionHeadersList() { - if (dimensionHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } else { - return dimensionHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public int getDimensionHeadersCount() { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.size(); - } else { - return dimensionHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder addAllDimensionHeaders( - java.lang.Iterable values) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); - onChanged(); - } else { - dimensionHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder clearDimensionHeaders() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dimensionHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public Builder removeDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.remove(index); - onChanged(); - } else { - dimensionHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder getDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public java.util.List - getDimensionHeadersOrBuilderList() { - if (dimensionHeadersBuilder_ != null) { - return dimensionHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder>( - dimensionHeaders_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - dimensionHeaders_ = null; - } - return dimensionHeadersBuilder_; - } - - private java.util.List metricHeaders_ = - java.util.Collections.emptyList(); - - private void ensureMetricHeadersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metricHeaders_ = - new java.util.ArrayList(metricHeaders_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public java.util.List getMetricHeadersList() { - if (metricHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricHeaders_); - } else { - return metricHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public int getMetricHeadersCount() { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.size(); - } else { - return metricHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, value); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder addAllMetricHeaders( - java.lang.Iterable values) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); - onChanged(); - } else { - metricHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder clearMetricHeaders() { - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - metricHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public Builder removeMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.remove(index); - onChanged(); - } else { - metricHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder getMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public java.util.List - getMetricHeadersOrBuilderList() { - if (metricHeadersBuilder_ != null) { - return metricHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricHeaders_); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder>( - metricHeaders_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - metricHeaders_ = null; - } - return metricHeadersBuilder_; - } - - private java.util.List rows_ = - java.util.Collections.emptyList(); - - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public com.google.analytics.data.v1beta.Row getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder setRows(int index, com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder setRows( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder addRows(com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder addRows(int index, com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder addRows(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder addRows( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - rows_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private java.util.List aggregates_ = - java.util.Collections.emptyList(); - - private void ensureAggregatesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - aggregates_ = new java.util.ArrayList(aggregates_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - aggregatesBuilder_; - - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public java.util.List getAggregatesList() { - if (aggregatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(aggregates_); - } else { - return aggregatesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public int getAggregatesCount() { - if (aggregatesBuilder_ == null) { - return aggregates_.size(); - } else { - return aggregatesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public com.google.analytics.data.v1beta.Row getAggregates(int index) { - if (aggregatesBuilder_ == null) { - return aggregates_.get(index); - } else { - return aggregatesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder setAggregates(int index, com.google.analytics.data.v1beta.Row value) { - if (aggregatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregatesIsMutable(); - aggregates_.set(index, value); - onChanged(); - } else { - aggregatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder setAggregates( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (aggregatesBuilder_ == null) { - ensureAggregatesIsMutable(); - aggregates_.set(index, builderForValue.build()); - onChanged(); - } else { - aggregatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder addAggregates(com.google.analytics.data.v1beta.Row value) { - if (aggregatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregatesIsMutable(); - aggregates_.add(value); - onChanged(); - } else { - aggregatesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder addAggregates(int index, com.google.analytics.data.v1beta.Row value) { - if (aggregatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregatesIsMutable(); - aggregates_.add(index, value); - onChanged(); - } else { - aggregatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder addAggregates(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (aggregatesBuilder_ == null) { - ensureAggregatesIsMutable(); - aggregates_.add(builderForValue.build()); - onChanged(); - } else { - aggregatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder addAggregates( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (aggregatesBuilder_ == null) { - ensureAggregatesIsMutable(); - aggregates_.add(index, builderForValue.build()); - onChanged(); - } else { - aggregatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder addAllAggregates( - java.lang.Iterable values) { - if (aggregatesBuilder_ == null) { - ensureAggregatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aggregates_); - onChanged(); - } else { - aggregatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder clearAggregates() { - if (aggregatesBuilder_ == null) { - aggregates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - aggregatesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public Builder removeAggregates(int index) { - if (aggregatesBuilder_ == null) { - ensureAggregatesIsMutable(); - aggregates_.remove(index); - onChanged(); - } else { - aggregatesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder getAggregatesBuilder(int index) { - return getAggregatesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getAggregatesOrBuilder(int index) { - if (aggregatesBuilder_ == null) { - return aggregates_.get(index); - } else { - return aggregatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public java.util.List - getAggregatesOrBuilderList() { - if (aggregatesBuilder_ != null) { - return aggregatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(aggregates_); - } - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder addAggregatesBuilder() { - return getAggregatesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder addAggregatesBuilder(int index) { - return getAggregatesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Aggregation of metric values. Can be totals, minimums, or maximums. The
-     * returned aggregations are controlled by the metric_aggregations in the
-     * pivot. The type of aggregation returned in each row is shown by the
-     * dimension_values which are set to "RESERVED_<MetricAggregation>".
-     * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - public java.util.List getAggregatesBuilderList() { - return getAggregatesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getAggregatesFieldBuilder() { - if (aggregatesBuilder_ == null) { - aggregatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - aggregates_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - aggregates_ = null; - } - return aggregatesBuilder_; - } - - private com.google.analytics.data.v1beta.ResponseMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData, - com.google.analytics.data.v1beta.ResponseMetaData.Builder, - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * - * @return The metadata. - */ - public com.google.analytics.data.v1beta.ResponseMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - public Builder setMetadata(com.google.analytics.data.v1beta.ResponseMetaData value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - public Builder setMetadata( - com.google.analytics.data.v1beta.ResponseMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - public Builder mergeMetadata(com.google.analytics.data.v1beta.ResponseMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.analytics.data.v1beta.ResponseMetaData.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - public com.google.analytics.data.v1beta.ResponseMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData, - com.google.analytics.data.v1beta.ResponseMetaData.Builder, - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData, - com.google.analytics.data.v1beta.ResponseMetaData.Builder, - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.analytics.data.v1beta.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * - * @return Whether the propertyQuota field is set. - */ - public boolean hasPropertyQuota() { - return propertyQuotaBuilder_ != null || propertyQuota_ != null; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1beta.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyQuota_ = value; - onChanged(); - } else { - propertyQuotaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1beta.PropertyQuota.Builder builderForValue) { - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = builderForValue.build(); - onChanged(); - } else { - propertyQuotaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1beta.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1beta.PropertyQuota.newBuilder(propertyQuota_) - .mergeFrom(value) - .buildPartial(); - } else { - propertyQuota_ = value; - } - onChanged(); - } else { - propertyQuotaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - public Builder clearPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = null; - onChanged(); - } else { - propertyQuota_ = null; - propertyQuotaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - public com.google.analytics.data.v1beta.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder>( - getPropertyQuota(), getParentForChildren(), isClean()); - propertyQuota_ = null; - } - return propertyQuotaBuilder_; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 8; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 8; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 8; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 8; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 8; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kind_ = 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.analytics.data.v1beta.RunPivotReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.RunPivotReportResponse) - private static final com.google.analytics.data.v1beta.RunPivotReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.RunPivotReportResponse(); - } - - public static com.google.analytics.data.v1beta.RunPivotReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPivotReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunPivotReportResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunPivotReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java deleted file mode 100644 index 2a889094..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java +++ /dev/null @@ -1,568 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface RunPivotReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.RunPivotReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - java.util.List getPivotHeadersList(); - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - com.google.analytics.data.v1beta.PivotHeader getPivotHeaders(int index); - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - int getPivotHeadersCount(); - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - java.util.List - getPivotHeadersOrBuilderList(); - /** - * - * - *
-   * Summarizes the columns and rows created by a pivot. Each pivot in the
-   * request produces one header in the response. If we have a request like
-   * this:
-   *     "pivots": [{
-   *       "fieldNames": ["country",
-   *         "city"]
-   *     },
-   *     {
-   *       "fieldNames": "eventName"
-   *     }]
-   * We will have the following `pivotHeaders` in the response:
-   *     "pivotHeaders" : [{
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [
-   *            { "value": "United Kingdom" },
-   *            { "value": "London" }
-   *          ]
-   *       },
-   *       {
-   *         "dimensionValues": [
-   *         { "value": "Japan" },
-   *         { "value": "Osaka" }
-   *         ]
-   *       }]
-   *     },
-   *     {
-   *       "dimensionHeaders": [{
-   *         "dimensionValues": [{ "value": "session_start" }]
-   *       },
-   *       {
-   *         "dimensionValues": [{ "value": "scroll" }]
-   *       }]
-   *     }]
-   * 
- * - * repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - com.google.analytics.data.v1beta.PivotHeaderOrBuilder getPivotHeadersOrBuilder(int index); - - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - java.util.List getDimensionHeadersList(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(int index); - - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - java.util.List getMetricHeadersList(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - int getMetricHeadersCount(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - com.google.analytics.data.v1beta.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 4; - */ - com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - java.util.List getAggregatesList(); - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - com.google.analytics.data.v1beta.Row getAggregates(int index); - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - int getAggregatesCount(); - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - java.util.List - getAggregatesOrBuilderList(); - /** - * - * - *
-   * Aggregation of metric values. Can be totals, minimums, or maximums. The
-   * returned aggregations are controlled by the metric_aggregations in the
-   * pivot. The type of aggregation returned in each row is shown by the
-   * dimension_values which are set to "RESERVED_<MetricAggregation>".
-   * 
- * - * repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - com.google.analytics.data.v1beta.RowOrBuilder getAggregatesOrBuilder(int index); - - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * - * @return The metadata. - */ - com.google.analytics.data.v1beta.ResponseMetaData getMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * - * @return Whether the propertyQuota field is set. - */ - boolean hasPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); - - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 8; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runPivotReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 8; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java deleted file mode 100644 index 32dfaf3a..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java +++ /dev/null @@ -1,3947 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The request to generate a realtime report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunRealtimeReportRequest} - */ -public final class RunRealtimeReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.RunRealtimeReportRequest) - RunRealtimeReportRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunRealtimeReportRequest.newBuilder() to construct. - private RunRealtimeReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunRealtimeReportRequest() { - property_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - metricAggregations_ = java.util.Collections.emptyList(); - orderBys_ = java.util.Collections.emptyList(); - minuteRanges_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunRealtimeReportRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RunRealtimeReportRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - property_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metrics_.add( - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry)); - break; - } - case 34: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - limit_ = input.readInt64(); - break; - } - case 56: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metricAggregations_.add(rawValue); - break; - } - case 58: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metricAggregations_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - orderBys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - orderBys_.add( - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry)); - break; - } - case 72: - { - returnPropertyQuota_ = input.readBool(); - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - minuteRanges_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - minuteRanges_.add( - input.readMessage( - com.google.analytics.data.v1beta.MinuteRange.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - minuteRanges_ = java.util.Collections.unmodifiableList(minuteRanges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunRealtimeReportRequest.class, - com.google.analytics.data.v1beta.RunRealtimeReportRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 4; - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - public static final int LIMIT_FIELD_NUMBER = 6; - private long limit_; - /** - * - * - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   * The API can also return fewer rows than the requested `limit`, if there
-   * aren't as many dimension values as the `limit`. For instance, there are
-   * fewer than 300 possible values for the dimension `country`, so when
-   * reporting on only `country`, you can't get more than 300 rows, even if you
-   * set `limit` to a higher value.
-   * 
- * - * int64 limit = 6; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int METRIC_AGGREGATIONS_FIELD_NUMBER = 7; - private java.util.List metricAggregations_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation> - metricAggregations_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>() { - public com.google.analytics.data.v1beta.MetricAggregation convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricAggregation result = - com.google.analytics.data.v1beta.MetricAggregation.valueOf(from); - return result == null - ? com.google.analytics.data.v1beta.MetricAggregation.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @return A list containing the metricAggregations. - */ - @java.lang.Override - public java.util.List - getMetricAggregationsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @return The count of metricAggregations. - */ - @java.lang.Override - public int getMetricAggregationsCount() { - return metricAggregations_.size(); - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index) { - return metricAggregations_converter_.convert(metricAggregations_.get(index)); - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - @java.lang.Override - public java.util.List getMetricAggregationsValueList() { - return metricAggregations_; - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - @java.lang.Override - public int getMetricAggregationsValue(int index) { - return metricAggregations_.get(index); - } - - private int metricAggregationsMemoizedSerializedSize; - - public static final int ORDER_BYS_FIELD_NUMBER = 8; - private java.util.List orderBys_; - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - @java.lang.Override - public java.util.List getOrderBysList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - @java.lang.Override - public java.util.List - getOrderBysOrBuilderList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - @java.lang.Override - public int getOrderBysCount() { - return orderBys_.size(); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index) { - return orderBys_.get(index); - } - - public static final int RETURN_PROPERTY_QUOTA_FIELD_NUMBER = 9; - private boolean returnPropertyQuota_; - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 9; - * - * @return The returnPropertyQuota. - */ - @java.lang.Override - public boolean getReturnPropertyQuota() { - return returnPropertyQuota_; - } - - public static final int MINUTE_RANGES_FIELD_NUMBER = 10; - private java.util.List minuteRanges_; - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - @java.lang.Override - public java.util.List getMinuteRangesList() { - return minuteRanges_; - } - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - @java.lang.Override - public java.util.List - getMinuteRangesOrBuilderList() { - return minuteRanges_; - } - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - @java.lang.Override - public int getMinuteRangesCount() { - return minuteRanges_.size(); - } - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MinuteRange getMinuteRanges(int index) { - return minuteRanges_.get(index); - } - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MinuteRangeOrBuilder getMinuteRangesOrBuilder(int index) { - return minuteRanges_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(4, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(5, getMetricFilter()); - } - if (limit_ != 0L) { - output.writeInt64(6, limit_); - } - if (getMetricAggregationsList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(metricAggregationsMemoizedSerializedSize); - } - for (int i = 0; i < metricAggregations_.size(); i++) { - output.writeEnumNoTag(metricAggregations_.get(i)); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(8, orderBys_.get(i)); - } - if (returnPropertyQuota_ != false) { - output.writeBool(9, returnPropertyQuota_); - } - for (int i = 0; i < minuteRanges_.size(); i++) { - output.writeMessage(10, minuteRanges_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetricFilter()); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, limit_); - } - { - int dataSize = 0; - for (int i = 0; i < metricAggregations_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(metricAggregations_.get(i)); - } - size += dataSize; - if (!getMetricAggregationsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - metricAggregationsMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < orderBys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, orderBys_.get(i)); - } - if (returnPropertyQuota_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, returnPropertyQuota_); - } - for (int i = 0; i < minuteRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, minuteRanges_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.RunRealtimeReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.RunRealtimeReportRequest other = - (com.google.analytics.data.v1beta.RunRealtimeReportRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; - } - if (hasMetricFilter() != other.hasMetricFilter()) return false; - if (hasMetricFilter()) { - if (!getMetricFilter().equals(other.getMetricFilter())) return false; - } - if (getLimit() != other.getLimit()) return false; - if (!metricAggregations_.equals(other.metricAggregations_)) return false; - if (!getOrderBysList().equals(other.getOrderBysList())) return false; - if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!getMinuteRangesList().equals(other.getMinuteRangesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - if (hasMetricFilter()) { - hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getMetricFilter().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - if (getMetricAggregationsCount() > 0) { - hash = (37 * hash) + METRIC_AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + metricAggregations_.hashCode(); - } - if (getOrderBysCount() > 0) { - hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; - hash = (53 * hash) + getOrderBysList().hashCode(); - } - hash = (37 * hash) + RETURN_PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPropertyQuota()); - if (getMinuteRangesCount() > 0) { - hash = (37 * hash) + MINUTE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getMinuteRangesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.RunRealtimeReportRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request to generate a realtime report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunRealtimeReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.RunRealtimeReportRequest) - com.google.analytics.data.v1beta.RunRealtimeReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunRealtimeReportRequest.class, - com.google.analytics.data.v1beta.RunRealtimeReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.RunRealtimeReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - getOrderBysFieldBuilder(); - getMinuteRangesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionsBuilder_.clear(); - } - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricsBuilder_.clear(); - } - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - limit_ = 0L; - - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - orderBysBuilder_.clear(); - } - returnPropertyQuota_ = false; - - if (minuteRangesBuilder_ == null) { - minuteRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - minuteRangesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.RunRealtimeReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportRequest build() { - com.google.analytics.data.v1beta.RunRealtimeReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportRequest buildPartial() { - com.google.analytics.data.v1beta.RunRealtimeReportRequest result = - new com.google.analytics.data.v1beta.RunRealtimeReportRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - result.limit_ = limit_; - if (((bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metricAggregations_ = metricAggregations_; - if (orderBysBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.orderBys_ = orderBys_; - } else { - result.orderBys_ = orderBysBuilder_.build(); - } - result.returnPropertyQuota_ = returnPropertyQuota_; - if (minuteRangesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - minuteRanges_ = java.util.Collections.unmodifiableList(minuteRanges_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.minuteRanges_ = minuteRanges_; - } else { - result.minuteRanges_ = minuteRangesBuilder_.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.analytics.data.v1beta.RunRealtimeReportRequest) { - return mergeFrom((com.google.analytics.data.v1beta.RunRealtimeReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.RunRealtimeReportRequest other) { - if (other == com.google.analytics.data.v1beta.RunRealtimeReportRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionsFieldBuilder() - : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (!other.metricAggregations_.isEmpty()) { - if (metricAggregations_.isEmpty()) { - metricAggregations_ = other.metricAggregations_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricAggregationsIsMutable(); - metricAggregations_.addAll(other.metricAggregations_); - } - onChanged(); - } - if (orderBysBuilder_ == null) { - if (!other.orderBys_.isEmpty()) { - if (orderBys_.isEmpty()) { - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureOrderBysIsMutable(); - orderBys_.addAll(other.orderBys_); - } - onChanged(); - } - } else { - if (!other.orderBys_.isEmpty()) { - if (orderBysBuilder_.isEmpty()) { - orderBysBuilder_.dispose(); - orderBysBuilder_ = null; - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000008); - orderBysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrderBysFieldBuilder() - : null; - } else { - orderBysBuilder_.addAllMessages(other.orderBys_); - } - } - } - if (other.getReturnPropertyQuota() != false) { - setReturnPropertyQuota(other.getReturnPropertyQuota()); - } - if (minuteRangesBuilder_ == null) { - if (!other.minuteRanges_.isEmpty()) { - if (minuteRanges_.isEmpty()) { - minuteRanges_ = other.minuteRanges_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureMinuteRangesIsMutable(); - minuteRanges_.addAll(other.minuteRanges_); - } - onChanged(); - } - } else { - if (!other.minuteRanges_.isEmpty()) { - if (minuteRangesBuilder_.isEmpty()) { - minuteRangesBuilder_.dispose(); - minuteRangesBuilder_ = null; - minuteRanges_ = other.minuteRanges_; - bitField0_ = (bitField0_ & ~0x00000010); - minuteRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMinuteRangesFieldBuilder() - : null; - } else { - minuteRangesBuilder_.addAllMessages(other.minuteRanges_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.RunRealtimeReportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunRealtimeReportRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(dimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder getDimensionsBuilder(int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder>( - dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - dimensionFilterBuilder_; - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return dimensionFilterBuilder_ != null || dimensionFilter_ != null; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(dimensionFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionFilter_ = value; - } - onChanged(); - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public Builder clearDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - onChanged(); - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFilterBuilder() { - - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - } - /** - * - * - *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - metricFilterBuilder_; - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return metricFilterBuilder_ != null || metricFilter_ != null; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - onChanged(); - } else { - metricFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - onChanged(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(metricFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - metricFilter_ = value; - } - onChanged(); - } else { - metricFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public Builder clearMetricFilter() { - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - onChanged(); - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getMetricFilterBuilder() { - - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private long limit_; - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`. For instance, there are
-     * fewer than 300 possible values for the dimension `country`, so when
-     * reporting on only `country`, you can't get more than 300 rows, even if you
-     * set `limit` to a higher value.
-     * 
- * - * int64 limit = 6; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`. For instance, there are
-     * fewer than 300 possible values for the dimension `country`, so when
-     * reporting on only `country`, you can't get more than 300 rows, even if you
-     * set `limit` to a higher value.
-     * 
- * - * int64 limit = 6; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`. For instance, there are
-     * fewer than 300 possible values for the dimension `country`, so when
-     * reporting on only `country`, you can't get more than 300 rows, even if you
-     * set `limit` to a higher value.
-     * 
- * - * int64 limit = 6; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private java.util.List metricAggregations_ = - java.util.Collections.emptyList(); - - private void ensureMetricAggregationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metricAggregations_ = new java.util.ArrayList(metricAggregations_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @return A list containing the metricAggregations. - */ - public java.util.List - getMetricAggregationsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @return The count of metricAggregations. - */ - public int getMetricAggregationsCount() { - return metricAggregations_.size(); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index) { - return metricAggregations_converter_.convert(metricAggregations_.get(index)); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param index The index to set the value at. - * @param value The metricAggregations to set. - * @return This builder for chaining. - */ - public Builder setMetricAggregations( - int index, com.google.analytics.data.v1beta.MetricAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricAggregationsIsMutable(); - metricAggregations_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param value The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregations(com.google.analytics.data.v1beta.MetricAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param values The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addAllMetricAggregations( - java.lang.Iterable values) { - ensureMetricAggregationsIsMutable(); - for (com.google.analytics.data.v1beta.MetricAggregation value : values) { - metricAggregations_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricAggregations() { - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - public java.util.List getMetricAggregationsValueList() { - return java.util.Collections.unmodifiableList(metricAggregations_); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - public int getMetricAggregationsValue(int index) { - return metricAggregations_.get(index); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - * @return This builder for chaining. - */ - public Builder setMetricAggregationsValue(int index, int value) { - ensureMetricAggregationsIsMutable(); - metricAggregations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param value The enum numeric value on the wire for metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregationsValue(int value) { - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * - * @param values The enum numeric values on the wire for metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addAllMetricAggregationsValue(java.lang.Iterable values) { - ensureMetricAggregationsIsMutable(); - for (int value : values) { - metricAggregations_.add(value); - } - onChanged(); - return this; - } - - private java.util.List orderBys_ = - java.util.Collections.emptyList(); - - private void ensureOrderBysIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - orderBys_ = new java.util.ArrayList(orderBys_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder> - orderBysBuilder_; - - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public java.util.List getOrderBysList() { - if (orderBysBuilder_ == null) { - return java.util.Collections.unmodifiableList(orderBys_); - } else { - return orderBysBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public int getOrderBysCount() { - if (orderBysBuilder_ == null) { - return orderBys_.size(); - } else { - return orderBysBuilder_.getCount(); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder setOrderBys(int index, com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.set(index, value); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder setOrderBys( - int index, com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.set(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(value); - onChanged(); - } else { - orderBysBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder addOrderBys(int index, com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(index, value); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder addOrderBys( - int index, com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder addAllOrderBys( - java.lang.Iterable values) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); - onChanged(); - } else { - orderBysBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder clearOrderBys() { - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - orderBysBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public Builder removeOrderBys(int index) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.remove(index); - onChanged(); - } else { - orderBysBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder getOrderBysBuilder(int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public java.util.List - getOrderBysOrBuilderList() { - if (orderBysBuilder_ != null) { - return orderBysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orderBys_); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder>( - orderBys_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - orderBys_ = null; - } - return orderBysBuilder_; - } - - private boolean returnPropertyQuota_; - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 9; - * - * @return The returnPropertyQuota. - */ - @java.lang.Override - public boolean getReturnPropertyQuota() { - return returnPropertyQuota_; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 9; - * - * @param value The returnPropertyQuota to set. - * @return This builder for chaining. - */ - public Builder setReturnPropertyQuota(boolean value) { - - returnPropertyQuota_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 9; - * - * @return This builder for chaining. - */ - public Builder clearReturnPropertyQuota() { - - returnPropertyQuota_ = false; - onChanged(); - return this; - } - - private java.util.List minuteRanges_ = - java.util.Collections.emptyList(); - - private void ensureMinuteRangesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - minuteRanges_ = - new java.util.ArrayList(minuteRanges_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MinuteRange, - com.google.analytics.data.v1beta.MinuteRange.Builder, - com.google.analytics.data.v1beta.MinuteRangeOrBuilder> - minuteRangesBuilder_; - - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public java.util.List getMinuteRangesList() { - if (minuteRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(minuteRanges_); - } else { - return minuteRangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public int getMinuteRangesCount() { - if (minuteRangesBuilder_ == null) { - return minuteRanges_.size(); - } else { - return minuteRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public com.google.analytics.data.v1beta.MinuteRange getMinuteRanges(int index) { - if (minuteRangesBuilder_ == null) { - return minuteRanges_.get(index); - } else { - return minuteRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder setMinuteRanges(int index, com.google.analytics.data.v1beta.MinuteRange value) { - if (minuteRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinuteRangesIsMutable(); - minuteRanges_.set(index, value); - onChanged(); - } else { - minuteRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder setMinuteRanges( - int index, com.google.analytics.data.v1beta.MinuteRange.Builder builderForValue) { - if (minuteRangesBuilder_ == null) { - ensureMinuteRangesIsMutable(); - minuteRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - minuteRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder addMinuteRanges(com.google.analytics.data.v1beta.MinuteRange value) { - if (minuteRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinuteRangesIsMutable(); - minuteRanges_.add(value); - onChanged(); - } else { - minuteRangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder addMinuteRanges(int index, com.google.analytics.data.v1beta.MinuteRange value) { - if (minuteRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinuteRangesIsMutable(); - minuteRanges_.add(index, value); - onChanged(); - } else { - minuteRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder addMinuteRanges( - com.google.analytics.data.v1beta.MinuteRange.Builder builderForValue) { - if (minuteRangesBuilder_ == null) { - ensureMinuteRangesIsMutable(); - minuteRanges_.add(builderForValue.build()); - onChanged(); - } else { - minuteRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder addMinuteRanges( - int index, com.google.analytics.data.v1beta.MinuteRange.Builder builderForValue) { - if (minuteRangesBuilder_ == null) { - ensureMinuteRangesIsMutable(); - minuteRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - minuteRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder addAllMinuteRanges( - java.lang.Iterable values) { - if (minuteRangesBuilder_ == null) { - ensureMinuteRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, minuteRanges_); - onChanged(); - } else { - minuteRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder clearMinuteRanges() { - if (minuteRangesBuilder_ == null) { - minuteRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - minuteRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public Builder removeMinuteRanges(int index) { - if (minuteRangesBuilder_ == null) { - ensureMinuteRangesIsMutable(); - minuteRanges_.remove(index); - onChanged(); - } else { - minuteRangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public com.google.analytics.data.v1beta.MinuteRange.Builder getMinuteRangesBuilder(int index) { - return getMinuteRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public com.google.analytics.data.v1beta.MinuteRangeOrBuilder getMinuteRangesOrBuilder( - int index) { - if (minuteRangesBuilder_ == null) { - return minuteRanges_.get(index); - } else { - return minuteRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public java.util.List - getMinuteRangesOrBuilderList() { - if (minuteRangesBuilder_ != null) { - return minuteRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(minuteRanges_); - } - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public com.google.analytics.data.v1beta.MinuteRange.Builder addMinuteRangesBuilder() { - return getMinuteRangesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MinuteRange.getDefaultInstance()); - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public com.google.analytics.data.v1beta.MinuteRange.Builder addMinuteRangesBuilder(int index) { - return getMinuteRangesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.MinuteRange.getDefaultInstance()); - } - /** - * - * - *
-     * The minute ranges of event data to read. If unspecified, one minute range
-     * for the last 30 minutes will be used. If multiple minute ranges are
-     * requested, each response row will contain a zero based minute range index.
-     * If two minute ranges overlap, the event data for the overlapping minutes is
-     * included in the response rows for both minute ranges.
-     * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - public java.util.List - getMinuteRangesBuilderList() { - return getMinuteRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MinuteRange, - com.google.analytics.data.v1beta.MinuteRange.Builder, - com.google.analytics.data.v1beta.MinuteRangeOrBuilder> - getMinuteRangesFieldBuilder() { - if (minuteRangesBuilder_ == null) { - minuteRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MinuteRange, - com.google.analytics.data.v1beta.MinuteRange.Builder, - com.google.analytics.data.v1beta.MinuteRangeOrBuilder>( - minuteRanges_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - minuteRanges_ = null; - } - return minuteRangesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.RunRealtimeReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.RunRealtimeReportRequest) - private static final com.google.analytics.data.v1beta.RunRealtimeReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.RunRealtimeReportRequest(); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunRealtimeReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunRealtimeReportRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java deleted file mode 100644 index 3db31e98..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java +++ /dev/null @@ -1,467 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface RunRealtimeReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.RunRealtimeReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.Dimension getDimensions(int index); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.Metric getMetrics(int index); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getDimensionFilter(); - /** - * - * - *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   * The API can also return fewer rows than the requested `limit`, if there
-   * aren't as many dimension values as the `limit`. For instance, there are
-   * fewer than 300 possible values for the dimension `country`, so when
-   * reporting on only `country`, you can't get more than 300 rows, even if you
-   * set `limit` to a higher value.
-   * 
- * - * int64 limit = 6; - * - * @return The limit. - */ - long getLimit(); - - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @return A list containing the metricAggregations. - */ - java.util.List getMetricAggregationsList(); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @return The count of metricAggregations. - */ - int getMetricAggregationsCount(); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - java.util.List getMetricAggregationsValueList(); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - int getMetricAggregationsValue(int index); - - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - java.util.List getOrderBysList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - com.google.analytics.data.v1beta.OrderBy getOrderBys(int index); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - int getOrderBysCount(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index); - - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 9; - * - * @return The returnPropertyQuota. - */ - boolean getReturnPropertyQuota(); - - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - java.util.List getMinuteRangesList(); - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - com.google.analytics.data.v1beta.MinuteRange getMinuteRanges(int index); - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - int getMinuteRangesCount(); - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - java.util.List - getMinuteRangesOrBuilderList(); - /** - * - * - *
-   * The minute ranges of event data to read. If unspecified, one minute range
-   * for the last 30 minutes will be used. If multiple minute ranges are
-   * requested, each response row will contain a zero based minute range index.
-   * If two minute ranges overlap, the event data for the overlapping minutes is
-   * included in the response rows for both minute ranges.
-   * 
- * - * repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - com.google.analytics.data.v1beta.MinuteRangeOrBuilder getMinuteRangesOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java deleted file mode 100644 index 7a86dd3a..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java +++ /dev/null @@ -1,4032 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The response realtime report table corresponding to a request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunRealtimeReportResponse} - */ -public final class RunRealtimeReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.RunRealtimeReportResponse) - RunRealtimeReportResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunRealtimeReportResponse.newBuilder() to construct. - private RunRealtimeReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunRealtimeReportResponse() { - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - totals_ = java.util.Collections.emptyList(); - maximums_ = java.util.Collections.emptyList(); - minimums_ = java.util.Collections.emptyList(); - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunRealtimeReportResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RunRealtimeReportResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionHeader.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metricHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - rows_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - totals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - totals_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - maximums_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - maximums_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - minimums_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - minimums_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 56: - { - rowCount_ = input.readInt32(); - break; - } - case 66: - { - com.google.analytics.data.v1beta.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1beta.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - totals_ = java.util.Collections.unmodifiableList(totals_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - maximums_ = java.util.Collections.unmodifiableList(maximums_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - minimums_ = java.util.Collections.unmodifiableList(minimums_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunRealtimeReportResponse.class, - com.google.analytics.data.v1beta.RunRealtimeReportResponse.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; - private java.util.List dimensionHeaders_; - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 2; - private java.util.List metricHeaders_; - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List getMetricHeadersList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 3; - private java.util.List rows_; - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int TOTALS_FIELD_NUMBER = 4; - private java.util.List totals_; - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public java.util.List getTotalsList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public java.util.List - getTotalsOrBuilderList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public int getTotalsCount() { - return totals_.size(); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getTotals(int index) { - return totals_.get(index); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getTotalsOrBuilder(int index) { - return totals_.get(index); - } - - public static final int MAXIMUMS_FIELD_NUMBER = 5; - private java.util.List maximums_; - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public java.util.List getMaximumsList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public java.util.List - getMaximumsOrBuilderList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public int getMaximumsCount() { - return maximums_.size(); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getMaximums(int index) { - return maximums_.get(index); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getMaximumsOrBuilder(int index) { - return maximums_.get(index); - } - - public static final int MINIMUMS_FIELD_NUMBER = 6; - private java.util.List minimums_; - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public java.util.List getMinimumsList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public java.util.List - getMinimumsOrBuilderList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public int getMinimumsCount() { - return minimums_.size(); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getMinimums(int index) { - return minimums_.get(index); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getMinimumsOrBuilder(int index) { - return minimums_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 7; - private int rowCount_; - /** - * - * - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response and the `limit` request
-   * parameter. For example if a query returns 175 rows and includes `limit`
-   * of 50 in the API request, the response will contain `rowCount` of 175 but
-   * only 50 rows.
-   * 
- * - * int32 row_count = 7; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int PROPERTY_QUOTA_FIELD_NUMBER = 8; - private com.google.analytics.data.v1beta.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * - * @return Whether the propertyQuota field is set. - */ - @java.lang.Override - public boolean hasPropertyQuota() { - return propertyQuota_ != null; - } - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - public static final int KIND_FIELD_NUMBER = 9; - private volatile java.lang.Object kind_; - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 9; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 9; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < dimensionHeaders_.size(); i++) { - output.writeMessage(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - output.writeMessage(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(3, rows_.get(i)); - } - for (int i = 0; i < totals_.size(); i++) { - output.writeMessage(4, totals_.get(i)); - } - for (int i = 0; i < maximums_.size(); i++) { - output.writeMessage(5, maximums_.get(i)); - } - for (int i = 0; i < minimums_.size(); i++) { - output.writeMessage(6, minimums_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(7, rowCount_); - } - if (propertyQuota_ != null) { - output.writeMessage(8, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); - } - for (int i = 0; i < totals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, totals_.get(i)); - } - for (int i = 0; i < maximums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, maximums_.get(i)); - } - for (int i = 0; i < minimums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, minimums_.get(i)); - } - if (rowCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, rowCount_); - } - if (propertyQuota_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, kind_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.RunRealtimeReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.RunRealtimeReportResponse other = - (com.google.analytics.data.v1beta.RunRealtimeReportResponse) obj; - - if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; - if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; - if (!getRowsList().equals(other.getRowsList())) return false; - if (!getTotalsList().equals(other.getTotalsList())) return false; - if (!getMaximumsList().equals(other.getMaximumsList())) return false; - if (!getMinimumsList().equals(other.getMinimumsList())) return false; - if (getRowCount() != other.getRowCount()) return false; - if (hasPropertyQuota() != other.hasPropertyQuota()) return false; - if (hasPropertyQuota()) { - if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; - } - if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionHeadersCount() > 0) { - hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionHeadersList().hashCode(); - } - if (getMetricHeadersCount() > 0) { - hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getMetricHeadersList().hashCode(); - } - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - if (getTotalsCount() > 0) { - hash = (37 * hash) + TOTALS_FIELD_NUMBER; - hash = (53 * hash) + getTotalsList().hashCode(); - } - if (getMaximumsCount() > 0) { - hash = (37 * hash) + MAXIMUMS_FIELD_NUMBER; - hash = (53 * hash) + getMaximumsList().hashCode(); - } - if (getMinimumsCount() > 0) { - hash = (37 * hash) + MINIMUMS_FIELD_NUMBER; - hash = (53 * hash) + getMinimumsList().hashCode(); - } - hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRowCount(); - if (hasPropertyQuota()) { - hash = (37 * hash) + PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + getPropertyQuota().hashCode(); - } - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.data.v1beta.RunRealtimeReportResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The response realtime report table corresponding to a request.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunRealtimeReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.RunRealtimeReportResponse) - com.google.analytics.data.v1beta.RunRealtimeReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunRealtimeReportResponse.class, - com.google.analytics.data.v1beta.RunRealtimeReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.RunRealtimeReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - getTotalsFieldBuilder(); - getMaximumsFieldBuilder(); - getMinimumsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionHeadersBuilder_.clear(); - } - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricHeadersBuilder_.clear(); - } - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - rowsBuilder_.clear(); - } - if (totalsBuilder_ == null) { - totals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - totalsBuilder_.clear(); - } - if (maximumsBuilder_ == null) { - maximums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - maximumsBuilder_.clear(); - } - if (minimumsBuilder_ == null) { - minimums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - minimumsBuilder_.clear(); - } - rowCount_ = 0; - - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = null; - } else { - propertyQuota_ = null; - propertyQuotaBuilder_ = null; - } - kind_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.RunRealtimeReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportResponse build() { - com.google.analytics.data.v1beta.RunRealtimeReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportResponse buildPartial() { - com.google.analytics.data.v1beta.RunRealtimeReportResponse result = - new com.google.analytics.data.v1beta.RunRealtimeReportResponse(this); - int from_bitField0_ = bitField0_; - if (dimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionHeaders_ = dimensionHeaders_; - } else { - result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); - } - if (metricHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricHeaders_ = metricHeaders_; - } else { - result.metricHeaders_ = metricHeadersBuilder_.build(); - } - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - if (totalsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - totals_ = java.util.Collections.unmodifiableList(totals_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.totals_ = totals_; - } else { - result.totals_ = totalsBuilder_.build(); - } - if (maximumsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - maximums_ = java.util.Collections.unmodifiableList(maximums_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.maximums_ = maximums_; - } else { - result.maximums_ = maximumsBuilder_.build(); - } - if (minimumsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - minimums_ = java.util.Collections.unmodifiableList(minimums_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.minimums_ = minimums_; - } else { - result.minimums_ = minimumsBuilder_.build(); - } - result.rowCount_ = rowCount_; - if (propertyQuotaBuilder_ == null) { - result.propertyQuota_ = propertyQuota_; - } else { - result.propertyQuota_ = propertyQuotaBuilder_.build(); - } - result.kind_ = kind_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.RunRealtimeReportResponse) { - return mergeFrom((com.google.analytics.data.v1beta.RunRealtimeReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.RunRealtimeReportResponse other) { - if (other == com.google.analytics.data.v1beta.RunRealtimeReportResponse.getDefaultInstance()) - return this; - if (dimensionHeadersBuilder_ == null) { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeaders_.isEmpty()) { - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.addAll(other.dimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeadersBuilder_.isEmpty()) { - dimensionHeadersBuilder_.dispose(); - dimensionHeadersBuilder_ = null; - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionHeadersFieldBuilder() - : null; - } else { - dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); - } - } - } - if (metricHeadersBuilder_ == null) { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeaders_.isEmpty()) { - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricHeadersIsMutable(); - metricHeaders_.addAll(other.metricHeaders_); - } - onChanged(); - } - } else { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeadersBuilder_.isEmpty()) { - metricHeadersBuilder_.dispose(); - metricHeadersBuilder_ = null; - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - metricHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricHeadersFieldBuilder() - : null; - } else { - metricHeadersBuilder_.addAllMessages(other.metricHeaders_); - } - } - } - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowsFieldBuilder() - : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (totalsBuilder_ == null) { - if (!other.totals_.isEmpty()) { - if (totals_.isEmpty()) { - totals_ = other.totals_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTotalsIsMutable(); - totals_.addAll(other.totals_); - } - onChanged(); - } - } else { - if (!other.totals_.isEmpty()) { - if (totalsBuilder_.isEmpty()) { - totalsBuilder_.dispose(); - totalsBuilder_ = null; - totals_ = other.totals_; - bitField0_ = (bitField0_ & ~0x00000008); - totalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTotalsFieldBuilder() - : null; - } else { - totalsBuilder_.addAllMessages(other.totals_); - } - } - } - if (maximumsBuilder_ == null) { - if (!other.maximums_.isEmpty()) { - if (maximums_.isEmpty()) { - maximums_ = other.maximums_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureMaximumsIsMutable(); - maximums_.addAll(other.maximums_); - } - onChanged(); - } - } else { - if (!other.maximums_.isEmpty()) { - if (maximumsBuilder_.isEmpty()) { - maximumsBuilder_.dispose(); - maximumsBuilder_ = null; - maximums_ = other.maximums_; - bitField0_ = (bitField0_ & ~0x00000010); - maximumsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMaximumsFieldBuilder() - : null; - } else { - maximumsBuilder_.addAllMessages(other.maximums_); - } - } - } - if (minimumsBuilder_ == null) { - if (!other.minimums_.isEmpty()) { - if (minimums_.isEmpty()) { - minimums_ = other.minimums_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureMinimumsIsMutable(); - minimums_.addAll(other.minimums_); - } - onChanged(); - } - } else { - if (!other.minimums_.isEmpty()) { - if (minimumsBuilder_.isEmpty()) { - minimumsBuilder_.dispose(); - minimumsBuilder_ = null; - minimums_ = other.minimums_; - bitField0_ = (bitField0_ & ~0x00000020); - minimumsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMinimumsFieldBuilder() - : null; - } else { - minimumsBuilder_.addAllMessages(other.minimums_); - } - } - } - if (other.getRowCount() != 0) { - setRowCount(other.getRowCount()); - } - if (other.hasPropertyQuota()) { - mergePropertyQuota(other.getPropertyQuota()); - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.RunRealtimeReportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunRealtimeReportResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List dimensionHeaders_ = - java.util.Collections.emptyList(); - - private void ensureDimensionHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList( - dimensionHeaders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersList() { - if (dimensionHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } else { - return dimensionHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public int getDimensionHeadersCount() { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.size(); - } else { - return dimensionHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addAllDimensionHeaders( - java.lang.Iterable values) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); - onChanged(); - } else { - dimensionHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder clearDimensionHeaders() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder removeDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.remove(index); - onChanged(); - } else { - dimensionHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder getDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersOrBuilderList() { - if (dimensionHeadersBuilder_ != null) { - return dimensionHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder>( - dimensionHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionHeaders_ = null; - } - return dimensionHeadersBuilder_; - } - - private java.util.List metricHeaders_ = - java.util.Collections.emptyList(); - - private void ensureMetricHeadersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = - new java.util.ArrayList(metricHeaders_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public java.util.List getMetricHeadersList() { - if (metricHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricHeaders_); - } else { - return metricHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public int getMetricHeadersCount() { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.size(); - } else { - return metricHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, value); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addAllMetricHeaders( - java.lang.Iterable values) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); - onChanged(); - } else { - metricHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder clearMetricHeaders() { - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder removeMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.remove(index); - onChanged(); - } else { - metricHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder getMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersOrBuilderList() { - if (metricHeadersBuilder_ != null) { - return metricHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricHeaders_); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder>( - metricHeaders_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricHeaders_ = null; - } - return metricHeadersBuilder_; - } - - private java.util.List rows_ = - java.util.Collections.emptyList(); - - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder setRows(int index, com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows(int index, com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private java.util.List totals_ = - java.util.Collections.emptyList(); - - private void ensureTotalsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - totals_ = new java.util.ArrayList(totals_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - totalsBuilder_; - - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public java.util.List getTotalsList() { - if (totalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(totals_); - } else { - return totalsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public int getTotalsCount() { - if (totalsBuilder_ == null) { - return totals_.size(); - } else { - return totalsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row getTotals(int index) { - if (totalsBuilder_ == null) { - return totals_.get(index); - } else { - return totalsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder setTotals(int index, com.google.analytics.data.v1beta.Row value) { - if (totalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalsIsMutable(); - totals_.set(index, value); - onChanged(); - } else { - totalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder setTotals( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.set(index, builderForValue.build()); - onChanged(); - } else { - totalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals(com.google.analytics.data.v1beta.Row value) { - if (totalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalsIsMutable(); - totals_.add(value); - onChanged(); - } else { - totalsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals(int index, com.google.analytics.data.v1beta.Row value) { - if (totalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalsIsMutable(); - totals_.add(index, value); - onChanged(); - } else { - totalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.add(builderForValue.build()); - onChanged(); - } else { - totalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.add(index, builderForValue.build()); - onChanged(); - } else { - totalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addAllTotals( - java.lang.Iterable values) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, totals_); - onChanged(); - } else { - totalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder clearTotals() { - if (totalsBuilder_ == null) { - totals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - totalsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder removeTotals(int index) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.remove(index); - onChanged(); - } else { - totalsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder getTotalsBuilder(int index) { - return getTotalsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getTotalsOrBuilder(int index) { - if (totalsBuilder_ == null) { - return totals_.get(index); - } else { - return totalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public java.util.List - getTotalsOrBuilderList() { - if (totalsBuilder_ != null) { - return totalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(totals_); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder addTotalsBuilder() { - return getTotalsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder addTotalsBuilder(int index) { - return getTotalsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public java.util.List getTotalsBuilderList() { - return getTotalsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getTotalsFieldBuilder() { - if (totalsBuilder_ == null) { - totalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - totals_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - totals_ = null; - } - return totalsBuilder_; - } - - private java.util.List maximums_ = - java.util.Collections.emptyList(); - - private void ensureMaximumsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - maximums_ = new java.util.ArrayList(maximums_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - maximumsBuilder_; - - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public java.util.List getMaximumsList() { - if (maximumsBuilder_ == null) { - return java.util.Collections.unmodifiableList(maximums_); - } else { - return maximumsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public int getMaximumsCount() { - if (maximumsBuilder_ == null) { - return maximums_.size(); - } else { - return maximumsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row getMaximums(int index) { - if (maximumsBuilder_ == null) { - return maximums_.get(index); - } else { - return maximumsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder setMaximums(int index, com.google.analytics.data.v1beta.Row value) { - if (maximumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaximumsIsMutable(); - maximums_.set(index, value); - onChanged(); - } else { - maximumsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder setMaximums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.set(index, builderForValue.build()); - onChanged(); - } else { - maximumsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums(com.google.analytics.data.v1beta.Row value) { - if (maximumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaximumsIsMutable(); - maximums_.add(value); - onChanged(); - } else { - maximumsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums(int index, com.google.analytics.data.v1beta.Row value) { - if (maximumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaximumsIsMutable(); - maximums_.add(index, value); - onChanged(); - } else { - maximumsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.add(builderForValue.build()); - onChanged(); - } else { - maximumsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.add(index, builderForValue.build()); - onChanged(); - } else { - maximumsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addAllMaximums( - java.lang.Iterable values) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, maximums_); - onChanged(); - } else { - maximumsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder clearMaximums() { - if (maximumsBuilder_ == null) { - maximums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - maximumsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder removeMaximums(int index) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.remove(index); - onChanged(); - } else { - maximumsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder getMaximumsBuilder(int index) { - return getMaximumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getMaximumsOrBuilder(int index) { - if (maximumsBuilder_ == null) { - return maximums_.get(index); - } else { - return maximumsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public java.util.List - getMaximumsOrBuilderList() { - if (maximumsBuilder_ != null) { - return maximumsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(maximums_); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder addMaximumsBuilder() { - return getMaximumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder addMaximumsBuilder(int index) { - return getMaximumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public java.util.List getMaximumsBuilderList() { - return getMaximumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getMaximumsFieldBuilder() { - if (maximumsBuilder_ == null) { - maximumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - maximums_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - maximums_ = null; - } - return maximumsBuilder_; - } - - private java.util.List minimums_ = - java.util.Collections.emptyList(); - - private void ensureMinimumsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - minimums_ = new java.util.ArrayList(minimums_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - minimumsBuilder_; - - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public java.util.List getMinimumsList() { - if (minimumsBuilder_ == null) { - return java.util.Collections.unmodifiableList(minimums_); - } else { - return minimumsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public int getMinimumsCount() { - if (minimumsBuilder_ == null) { - return minimums_.size(); - } else { - return minimumsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row getMinimums(int index) { - if (minimumsBuilder_ == null) { - return minimums_.get(index); - } else { - return minimumsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder setMinimums(int index, com.google.analytics.data.v1beta.Row value) { - if (minimumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinimumsIsMutable(); - minimums_.set(index, value); - onChanged(); - } else { - minimumsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder setMinimums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.set(index, builderForValue.build()); - onChanged(); - } else { - minimumsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums(com.google.analytics.data.v1beta.Row value) { - if (minimumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinimumsIsMutable(); - minimums_.add(value); - onChanged(); - } else { - minimumsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums(int index, com.google.analytics.data.v1beta.Row value) { - if (minimumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinimumsIsMutable(); - minimums_.add(index, value); - onChanged(); - } else { - minimumsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.add(builderForValue.build()); - onChanged(); - } else { - minimumsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.add(index, builderForValue.build()); - onChanged(); - } else { - minimumsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addAllMinimums( - java.lang.Iterable values) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, minimums_); - onChanged(); - } else { - minimumsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder clearMinimums() { - if (minimumsBuilder_ == null) { - minimums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - minimumsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder removeMinimums(int index) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.remove(index); - onChanged(); - } else { - minimumsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row.Builder getMinimumsBuilder(int index) { - return getMinimumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getMinimumsOrBuilder(int index) { - if (minimumsBuilder_ == null) { - return minimums_.get(index); - } else { - return minimumsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public java.util.List - getMinimumsOrBuilderList() { - if (minimumsBuilder_ != null) { - return minimumsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(minimums_); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row.Builder addMinimumsBuilder() { - return getMinimumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row.Builder addMinimumsBuilder(int index) { - return getMinimumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public java.util.List getMinimumsBuilderList() { - return getMinimumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getMinimumsFieldBuilder() { - if (minimumsBuilder_ == null) { - minimumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - minimums_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - minimums_ = null; - } - return minimumsBuilder_; - } - - private int rowCount_; - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response and the `limit` request
-     * parameter. For example if a query returns 175 rows and includes `limit`
-     * of 50 in the API request, the response will contain `rowCount` of 175 but
-     * only 50 rows.
-     * 
- * - * int32 row_count = 7; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response and the `limit` request
-     * parameter. For example if a query returns 175 rows and includes `limit`
-     * of 50 in the API request, the response will contain `rowCount` of 175 but
-     * only 50 rows.
-     * 
- * - * int32 row_count = 7; - * - * @param value The rowCount to set. - * @return This builder for chaining. - */ - public Builder setRowCount(int value) { - - rowCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response and the `limit` request
-     * parameter. For example if a query returns 175 rows and includes `limit`
-     * of 50 in the API request, the response will contain `rowCount` of 175 but
-     * only 50 rows.
-     * 
- * - * int32 row_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearRowCount() { - - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * - * @return Whether the propertyQuota field is set. - */ - public boolean hasPropertyQuota() { - return propertyQuotaBuilder_ != null || propertyQuota_ != null; - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1beta.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyQuota_ = value; - onChanged(); - } else { - propertyQuotaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1beta.PropertyQuota.Builder builderForValue) { - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = builderForValue.build(); - onChanged(); - } else { - propertyQuotaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1beta.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1beta.PropertyQuota.newBuilder(propertyQuota_) - .mergeFrom(value) - .buildPartial(); - } else { - propertyQuota_ = value; - } - onChanged(); - } else { - propertyQuotaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - public Builder clearPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = null; - onChanged(); - } else { - propertyQuota_ = null; - propertyQuotaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - public com.google.analytics.data.v1beta.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder>( - getPropertyQuota(), getParentForChildren(), isClean()); - propertyQuota_ = null; - } - return propertyQuotaBuilder_; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 9; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 9; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 9; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 9; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-     * between response types in JSON.
-     * 
- * - * string kind = 9; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kind_ = 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.analytics.data.v1beta.RunRealtimeReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.RunRealtimeReportResponse) - private static final com.google.analytics.data.v1beta.RunRealtimeReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.RunRealtimeReportResponse(); - } - - public static com.google.analytics.data.v1beta.RunRealtimeReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunRealtimeReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunRealtimeReportResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunRealtimeReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java deleted file mode 100644 index e7e3a731..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java +++ /dev/null @@ -1,426 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface RunRealtimeReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.RunRealtimeReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - java.util.List getDimensionHeadersList(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(int index); - - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - java.util.List getMetricHeadersList(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - int getMetricHeadersCount(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - com.google.analytics.data.v1beta.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - java.util.List getTotalsList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - com.google.analytics.data.v1beta.Row getTotals(int index); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - int getTotalsCount(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - java.util.List getTotalsOrBuilderList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - com.google.analytics.data.v1beta.RowOrBuilder getTotalsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - java.util.List getMaximumsList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - com.google.analytics.data.v1beta.Row getMaximums(int index); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - int getMaximumsCount(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - java.util.List - getMaximumsOrBuilderList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - com.google.analytics.data.v1beta.RowOrBuilder getMaximumsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - java.util.List getMinimumsList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - com.google.analytics.data.v1beta.Row getMinimums(int index); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - int getMinimumsCount(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - java.util.List - getMinimumsOrBuilderList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - com.google.analytics.data.v1beta.RowOrBuilder getMinimumsOrBuilder(int index); - - /** - * - * - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response and the `limit` request
-   * parameter. For example if a query returns 175 rows and includes `limit`
-   * of 50 in the API request, the response will contain `rowCount` of 175 but
-   * only 50 rows.
-   * 
- * - * int32 row_count = 7; - * - * @return The rowCount. - */ - int getRowCount(); - - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * - * @return Whether the propertyQuota field is set. - */ - boolean hasPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); - - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 9; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runRealtimeReport". Useful to distinguish
-   * between response types in JSON.
-   * 
- * - * string kind = 9; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java deleted file mode 100644 index 4462e42b..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java +++ /dev/null @@ -1,4666 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The request to generate a report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunReportRequest} - */ -public final class RunReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.RunReportRequest) - RunReportRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunReportRequest.newBuilder() to construct. - private RunReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunReportRequest() { - property_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - dateRanges_ = java.util.Collections.emptyList(); - metricAggregations_ = java.util.Collections.emptyList(); - orderBys_ = java.util.Collections.emptyList(); - currencyCode_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunReportRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RunReportRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - property_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metrics_.add( - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - dateRanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - dateRanges_.add( - input.readMessage( - com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry)); - break; - } - case 42: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.analytics.data.v1beta.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - offset_ = input.readInt64(); - break; - } - case 64: - { - limit_ = input.readInt64(); - break; - } - case 72: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricAggregations_.add(rawValue); - break; - } - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricAggregations_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - orderBys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - orderBys_.add( - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry)); - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 98: - { - com.google.analytics.data.v1beta.CohortSpec.Builder subBuilder = null; - if (cohortSpec_ != null) { - subBuilder = cohortSpec_.toBuilder(); - } - cohortSpec_ = - input.readMessage( - com.google.analytics.data.v1beta.CohortSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cohortSpec_); - cohortSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 104: - { - keepEmptyRows_ = input.readBool(); - break; - } - case 112: - { - returnPropertyQuota_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunReportRequest.class, - com.google.analytics.data.v1beta.RunReportRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int DATE_RANGES_FIELD_NUMBER = 4; - private java.util.List dateRanges_; - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List getDateRangesList() { - return dateRanges_; - } - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List - getDateRangesOrBuilderList() { - return dateRanges_; - } - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public int getDateRangesCount() { - return dateRanges_.size(); - } - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DateRange getDateRanges(int index) { - return dateRanges_.get(index); - } - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - return dateRanges_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 6; - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - public static final int OFFSET_FIELD_NUMBER = 7; - private long offset_; - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0.
-   * When paging, the first request does not specify offset; or equivalently,
-   * sets offset to 0; the first request returns the first `limit` of rows. The
-   * second request sets offset to the `limit` of the first request; the second
-   * request returns the second `limit` of rows.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 8; - private long limit_; - /** - * - * - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   * The API can also return fewer rows than the requested `limit`, if there
-   * aren't as many dimension values as the `limit`. For instance, there are
-   * fewer than 300 possible values for the dimension `country`, so when
-   * reporting on only `country`, you can't get more than 300 rows, even if you
-   * set `limit` to a higher value.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int METRIC_AGGREGATIONS_FIELD_NUMBER = 9; - private java.util.List metricAggregations_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation> - metricAggregations_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>() { - public com.google.analytics.data.v1beta.MetricAggregation convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1beta.MetricAggregation result = - com.google.analytics.data.v1beta.MetricAggregation.valueOf(from); - return result == null - ? com.google.analytics.data.v1beta.MetricAggregation.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @return A list containing the metricAggregations. - */ - @java.lang.Override - public java.util.List - getMetricAggregationsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @return The count of metricAggregations. - */ - @java.lang.Override - public int getMetricAggregationsCount() { - return metricAggregations_.size(); - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index) { - return metricAggregations_converter_.convert(metricAggregations_.get(index)); - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - @java.lang.Override - public java.util.List getMetricAggregationsValueList() { - return metricAggregations_; - } - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - @java.lang.Override - public int getMetricAggregationsValue(int index) { - return metricAggregations_.get(index); - } - - private int metricAggregationsMemoizedSerializedSize; - - public static final int ORDER_BYS_FIELD_NUMBER = 10; - private java.util.List orderBys_; - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List getOrderBysList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List - getOrderBysOrBuilderList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - @java.lang.Override - public int getOrderBysCount() { - return orderBys_.size(); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index) { - return orderBys_.get(index); - } - - public static final int CURRENCY_CODE_FIELD_NUMBER = 11; - private volatile java.lang.Object currencyCode_; - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 11; - * - * @return The currencyCode. - */ - @java.lang.Override - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } - } - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 11; - * - * @return The bytes for currencyCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COHORT_SPEC_FIELD_NUMBER = 12; - private com.google.analytics.data.v1beta.CohortSpec cohortSpec_; - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * - * @return Whether the cohortSpec field is set. - */ - @java.lang.Override - public boolean hasCohortSpec() { - return cohortSpec_ != null; - } - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * - * @return The cohortSpec. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpec getCohortSpec() { - return cohortSpec_ == null - ? com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance() - : cohortSpec_; - } - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuilder() { - return getCohortSpec(); - } - - public static final int KEEP_EMPTY_ROWS_FIELD_NUMBER = 13; - private boolean keepEmptyRows_; - /** - * - * - *
-   * If false or unspecified, each row with all metrics equal to 0 will not be
-   * returned. If true, these rows will be returned if they are not separately
-   * removed by a filter.
-   * 
- * - * bool keep_empty_rows = 13; - * - * @return The keepEmptyRows. - */ - @java.lang.Override - public boolean getKeepEmptyRows() { - return keepEmptyRows_; - } - - public static final int RETURN_PROPERTY_QUOTA_FIELD_NUMBER = 14; - private boolean returnPropertyQuota_; - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 14; - * - * @return The returnPropertyQuota. - */ - @java.lang.Override - public boolean getReturnPropertyQuota() { - return returnPropertyQuota_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - output.writeMessage(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(6, getMetricFilter()); - } - if (offset_ != 0L) { - output.writeInt64(7, offset_); - } - if (limit_ != 0L) { - output.writeInt64(8, limit_); - } - if (getMetricAggregationsList().size() > 0) { - output.writeUInt32NoTag(74); - output.writeUInt32NoTag(metricAggregationsMemoizedSerializedSize); - } - for (int i = 0; i < metricAggregations_.size(); i++) { - output.writeEnumNoTag(metricAggregations_.get(i)); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(10, orderBys_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, currencyCode_); - } - if (cohortSpec_ != null) { - output.writeMessage(12, getCohortSpec()); - } - if (keepEmptyRows_ != false) { - output.writeBool(13, keepEmptyRows_); - } - if (returnPropertyQuota_ != false) { - output.writeBool(14, returnPropertyQuota_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetricFilter()); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, offset_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, limit_); - } - { - int dataSize = 0; - for (int i = 0; i < metricAggregations_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(metricAggregations_.get(i)); - } - size += dataSize; - if (!getMetricAggregationsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - metricAggregationsMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < orderBys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, currencyCode_); - } - if (cohortSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCohortSpec()); - } - if (keepEmptyRows_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, keepEmptyRows_); - } - if (returnPropertyQuota_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, returnPropertyQuota_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.RunReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.RunReportRequest other = - (com.google.analytics.data.v1beta.RunReportRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getDateRangesList().equals(other.getDateRangesList())) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; - } - if (hasMetricFilter() != other.hasMetricFilter()) return false; - if (hasMetricFilter()) { - if (!getMetricFilter().equals(other.getMetricFilter())) return false; - } - if (getOffset() != other.getOffset()) return false; - if (getLimit() != other.getLimit()) return false; - if (!metricAggregations_.equals(other.metricAggregations_)) return false; - if (!getOrderBysList().equals(other.getOrderBysList())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; - if (hasCohortSpec() != other.hasCohortSpec()) return false; - if (hasCohortSpec()) { - if (!getCohortSpec().equals(other.getCohortSpec())) return false; - } - if (getKeepEmptyRows() != other.getKeepEmptyRows()) return false; - if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (getDateRangesCount() > 0) { - hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getDateRangesList().hashCode(); - } - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - if (hasMetricFilter()) { - hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getMetricFilter().hashCode(); - } - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - if (getMetricAggregationsCount() > 0) { - hash = (37 * hash) + METRIC_AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + metricAggregations_.hashCode(); - } - if (getOrderBysCount() > 0) { - hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; - hash = (53 * hash) + getOrderBysList().hashCode(); - } - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); - if (hasCohortSpec()) { - hash = (37 * hash) + COHORT_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getCohortSpec().hashCode(); - } - hash = (37 * hash) + KEEP_EMPTY_ROWS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepEmptyRows()); - hash = (37 * hash) + RETURN_PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPropertyQuota()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunReportRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.RunReportRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request to generate a report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.RunReportRequest) - com.google.analytics.data.v1beta.RunReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunReportRequest.class, - com.google.analytics.data.v1beta.RunReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.RunReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - getDateRangesFieldBuilder(); - getOrderBysFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionsBuilder_.clear(); - } - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricsBuilder_.clear(); - } - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - dateRangesBuilder_.clear(); - } - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - offset_ = 0L; - - limit_ = 0L; - - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - orderBysBuilder_.clear(); - } - currencyCode_ = ""; - - if (cohortSpecBuilder_ == null) { - cohortSpec_ = null; - } else { - cohortSpec_ = null; - cohortSpecBuilder_ = null; - } - keepEmptyRows_ = false; - - returnPropertyQuota_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.RunReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportRequest build() { - com.google.analytics.data.v1beta.RunReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportRequest buildPartial() { - com.google.analytics.data.v1beta.RunReportRequest result = - new com.google.analytics.data.v1beta.RunReportRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.build(); - } - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - result.offset_ = offset_; - result.limit_ = limit_; - if (((bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.metricAggregations_ = metricAggregations_; - if (orderBysBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.orderBys_ = orderBys_; - } else { - result.orderBys_ = orderBysBuilder_.build(); - } - result.currencyCode_ = currencyCode_; - if (cohortSpecBuilder_ == null) { - result.cohortSpec_ = cohortSpec_; - } else { - result.cohortSpec_ = cohortSpecBuilder_.build(); - } - result.keepEmptyRows_ = keepEmptyRows_; - result.returnPropertyQuota_ = returnPropertyQuota_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.RunReportRequest) { - return mergeFrom((com.google.analytics.data.v1beta.RunReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.RunReportRequest other) { - if (other == com.google.analytics.data.v1beta.RunReportRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionsFieldBuilder() - : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDateRangesFieldBuilder() - : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (!other.metricAggregations_.isEmpty()) { - if (metricAggregations_.isEmpty()) { - metricAggregations_ = other.metricAggregations_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMetricAggregationsIsMutable(); - metricAggregations_.addAll(other.metricAggregations_); - } - onChanged(); - } - if (orderBysBuilder_ == null) { - if (!other.orderBys_.isEmpty()) { - if (orderBys_.isEmpty()) { - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOrderBysIsMutable(); - orderBys_.addAll(other.orderBys_); - } - onChanged(); - } - } else { - if (!other.orderBys_.isEmpty()) { - if (orderBysBuilder_.isEmpty()) { - orderBysBuilder_.dispose(); - orderBysBuilder_ = null; - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000010); - orderBysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrderBysFieldBuilder() - : null; - } else { - orderBysBuilder_.addAllMessages(other.orderBys_); - } - } - } - if (!other.getCurrencyCode().isEmpty()) { - currencyCode_ = other.currencyCode_; - onChanged(); - } - if (other.hasCohortSpec()) { - mergeCohortSpec(other.getCohortSpec()); - } - if (other.getKeepEmptyRows() != false) { - setKeepEmptyRows(other.getKeepEmptyRows()); - } - if (other.getReturnPropertyQuota() != false) { - setReturnPropertyQuota(other.getReturnPropertyQuota()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.RunReportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunReportRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property identifier whose events are tracked.
-     * Specified in the URL path and not the body. To learn more, see [where to
-     * find your Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * Within a batch request, this property should either be unspecified or
-     * consistent with the batch-level property.
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(dimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1beta.Dimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1beta.Dimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder getDimensionsBuilder(int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1beta.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Dimension, - com.google.analytics.data.v1beta.Dimension.Builder, - com.google.analytics.data.v1beta.DimensionOrBuilder>( - dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1beta.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1beta.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public com.google.analytics.data.v1beta.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - public java.util.List getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Metric, - com.google.analytics.data.v1beta.Metric.Builder, - com.google.analytics.data.v1beta.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List dateRanges_ = - java.util.Collections.emptyList(); - - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - dateRanges_ = - new java.util.ArrayList(dateRanges_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder> - dateRangesBuilder_; - - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public java.util.List getDateRangesList() { - if (dateRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dateRanges_); - } else { - return dateRangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public int getDateRangesCount() { - if (dateRangesBuilder_ == null) { - return dateRanges_.size(); - } else { - return dateRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange getDateRanges(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder setDateRanges(int index, com.google.analytics.data.v1beta.DateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.set(index, value); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges(com.google.analytics.data.v1beta.DateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges(int index, com.google.analytics.data.v1beta.DateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(index, value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges( - com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.data.v1beta.DateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder addAllDateRanges( - java.lang.Iterable values) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); - onChanged(); - } else { - dateRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - dateRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public Builder removeDateRanges(int index) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.remove(index); - onChanged(); - } else { - dateRangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange.Builder getDateRangesBuilder(int index) { - return getDateRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public java.util.List - getDateRangesOrBuilderList() { - if (dateRangesBuilder_ != null) { - return dateRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dateRanges_); - } - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DateRange.getDefaultInstance()); - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1beta.DateRange.Builder addDateRangesBuilder(int index) { - return getDateRangesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DateRange.getDefaultInstance()); - } - /** - * - * - *
-     * Date ranges of data to read. If multiple date ranges are requested, each
-     * response row will contain a zero based date range index. If two date
-     * ranges overlap, the event data for the overlapping days is included in the
-     * response rows for both date ranges. In a cohort request, this `dateRanges`
-     * must be unspecified.
-     * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DateRange, - com.google.analytics.data.v1beta.DateRange.Builder, - com.google.analytics.data.v1beta.DateRangeOrBuilder>( - dateRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - dimensionFilterBuilder_; - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return dimensionFilterBuilder_ != null || dimensionFilter_ != null; - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(dimensionFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionFilter_ = value; - } - onChanged(); - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - public Builder clearDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - onChanged(); - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFilterBuilder() { - - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1beta.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - metricFilterBuilder_; - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return metricFilterBuilder_ != null || metricFilter_ != null; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1beta.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - onChanged(); - } else { - metricFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1beta.FilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - onChanged(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1beta.FilterExpression.newBuilder(metricFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - metricFilter_ = value; - } - onChanged(); - } else { - metricFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - public Builder clearMetricFilter() { - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - onChanged(); - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - public com.google.analytics.data.v1beta.FilterExpression.Builder getMetricFilterBuilder() { - - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1beta.FilterExpression.getDefaultInstance() - : metricFilter_; - } - } - /** - * - * - *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.FilterExpression, - com.google.analytics.data.v1beta.FilterExpression.Builder, - com.google.analytics.data.v1beta.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private long offset_; - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * When paging, the first request does not specify offset; or equivalently,
-     * sets offset to 0; the first request returns the first `limit` of rows. The
-     * second request sets offset to the `limit` of the first request; the second
-     * request returns the second `limit` of rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * When paging, the first request does not specify offset; or equivalently,
-     * sets offset to 0; the first request returns the first `limit` of rows. The
-     * second request sets offset to the `limit` of the first request; the second
-     * request returns the second `limit` of rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * When paging, the first request does not specify offset; or equivalently,
-     * sets offset to 0; the first request returns the first `limit` of rows. The
-     * second request sets offset to the `limit` of the first request; the second
-     * request returns the second `limit` of rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * - * @return This builder for chaining. - */ - public Builder clearOffset() { - - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_; - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`. For instance, there are
-     * fewer than 300 possible values for the dimension `country`, so when
-     * reporting on only `country`, you can't get more than 300 rows, even if you
-     * set `limit` to a higher value.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`. For instance, there are
-     * fewer than 300 possible values for the dimension `country`, so when
-     * reporting on only `country`, you can't get more than 300 rows, even if you
-     * set `limit` to a higher value.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API can also return fewer rows than the requested `limit`, if there
-     * aren't as many dimension values as the `limit`. For instance, there are
-     * fewer than 300 possible values for the dimension `country`, so when
-     * reporting on only `country`, you can't get more than 300 rows, even if you
-     * set `limit` to a higher value.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private java.util.List metricAggregations_ = - java.util.Collections.emptyList(); - - private void ensureMetricAggregationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = new java.util.ArrayList(metricAggregations_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @return A list containing the metricAggregations. - */ - public java.util.List - getMetricAggregationsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.data.v1beta.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @return The count of metricAggregations. - */ - public int getMetricAggregationsCount() { - return metricAggregations_.size(); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index) { - return metricAggregations_converter_.convert(metricAggregations_.get(index)); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param index The index to set the value at. - * @param value The metricAggregations to set. - * @return This builder for chaining. - */ - public Builder setMetricAggregations( - int index, com.google.analytics.data.v1beta.MetricAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricAggregationsIsMutable(); - metricAggregations_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param value The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregations(com.google.analytics.data.v1beta.MetricAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param values The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addAllMetricAggregations( - java.lang.Iterable values) { - ensureMetricAggregationsIsMutable(); - for (com.google.analytics.data.v1beta.MetricAggregation value : values) { - metricAggregations_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricAggregations() { - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - public java.util.List getMetricAggregationsValueList() { - return java.util.Collections.unmodifiableList(metricAggregations_); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - public int getMetricAggregationsValue(int index) { - return metricAggregations_.get(index); - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - * @return This builder for chaining. - */ - public Builder setMetricAggregationsValue(int index, int value) { - ensureMetricAggregationsIsMutable(); - metricAggregations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param value The enum numeric value on the wire for metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregationsValue(int value) { - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Aggregation of metrics. Aggregated metric values will be shown in rows
-     * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * - * @param values The enum numeric values on the wire for metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addAllMetricAggregationsValue(java.lang.Iterable values) { - ensureMetricAggregationsIsMutable(); - for (int value : values) { - metricAggregations_.add(value); - } - onChanged(); - return this; - } - - private java.util.List orderBys_ = - java.util.Collections.emptyList(); - - private void ensureOrderBysIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - orderBys_ = new java.util.ArrayList(orderBys_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder> - orderBysBuilder_; - - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public java.util.List getOrderBysList() { - if (orderBysBuilder_ == null) { - return java.util.Collections.unmodifiableList(orderBys_); - } else { - return orderBysBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public int getOrderBysCount() { - if (orderBysBuilder_ == null) { - return orderBys_.size(); - } else { - return orderBysBuilder_.getCount(); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder setOrderBys(int index, com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.set(index, value); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.set(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(value); - onChanged(); - } else { - orderBysBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder addOrderBys(int index, com.google.analytics.data.v1beta.OrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(index, value); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.data.v1beta.OrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder addAllOrderBys( - java.lang.Iterable values) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); - onChanged(); - } else { - orderBysBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder clearOrderBys() { - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - orderBysBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public Builder removeOrderBys(int index) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.remove(index); - onChanged(); - } else { - orderBysBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder getOrderBysBuilder(int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public java.util.List - getOrderBysOrBuilderList() { - if (orderBysBuilder_ != null) { - return orderBysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orderBys_); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.OrderBy, - com.google.analytics.data.v1beta.OrderBy.Builder, - com.google.analytics.data.v1beta.OrderByOrBuilder>( - orderBys_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - orderBys_ = null; - } - return orderBysBuilder_; - } - - private java.lang.Object currencyCode_ = ""; - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 11; - * - * @return The currencyCode. - */ - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 11; - * - * @return The bytes for currencyCode. - */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 11; - * - * @param value The currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currencyCode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 11; - * - * @return This builder for chaining. - */ - public Builder clearCurrencyCode() { - - currencyCode_ = getDefaultInstance().getCurrencyCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-     * If the field is empty, the report uses the property's default currency.
-     * 
- * - * string currency_code = 11; - * - * @param value The bytes for currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currencyCode_ = value; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.CohortSpec cohortSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortSpec, - com.google.analytics.data.v1beta.CohortSpec.Builder, - com.google.analytics.data.v1beta.CohortSpecOrBuilder> - cohortSpecBuilder_; - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * - * @return Whether the cohortSpec field is set. - */ - public boolean hasCohortSpec() { - return cohortSpecBuilder_ != null || cohortSpec_ != null; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * - * @return The cohortSpec. - */ - public com.google.analytics.data.v1beta.CohortSpec getCohortSpec() { - if (cohortSpecBuilder_ == null) { - return cohortSpec_ == null - ? com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance() - : cohortSpec_; - } else { - return cohortSpecBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - public Builder setCohortSpec(com.google.analytics.data.v1beta.CohortSpec value) { - if (cohortSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cohortSpec_ = value; - onChanged(); - } else { - cohortSpecBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - public Builder setCohortSpec( - com.google.analytics.data.v1beta.CohortSpec.Builder builderForValue) { - if (cohortSpecBuilder_ == null) { - cohortSpec_ = builderForValue.build(); - onChanged(); - } else { - cohortSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - public Builder mergeCohortSpec(com.google.analytics.data.v1beta.CohortSpec value) { - if (cohortSpecBuilder_ == null) { - if (cohortSpec_ != null) { - cohortSpec_ = - com.google.analytics.data.v1beta.CohortSpec.newBuilder(cohortSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - cohortSpec_ = value; - } - onChanged(); - } else { - cohortSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - public Builder clearCohortSpec() { - if (cohortSpecBuilder_ == null) { - cohortSpec_ = null; - onChanged(); - } else { - cohortSpec_ = null; - cohortSpecBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - public com.google.analytics.data.v1beta.CohortSpec.Builder getCohortSpecBuilder() { - - onChanged(); - return getCohortSpecFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuilder() { - if (cohortSpecBuilder_ != null) { - return cohortSpecBuilder_.getMessageOrBuilder(); - } else { - return cohortSpec_ == null - ? com.google.analytics.data.v1beta.CohortSpec.getDefaultInstance() - : cohortSpec_; - } - } - /** - * - * - *
-     * Cohort group associated with this request. If there is a cohort group
-     * in the request the 'cohort' dimension must be present.
-     * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortSpec, - com.google.analytics.data.v1beta.CohortSpec.Builder, - com.google.analytics.data.v1beta.CohortSpecOrBuilder> - getCohortSpecFieldBuilder() { - if (cohortSpecBuilder_ == null) { - cohortSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.CohortSpec, - com.google.analytics.data.v1beta.CohortSpec.Builder, - com.google.analytics.data.v1beta.CohortSpecOrBuilder>( - getCohortSpec(), getParentForChildren(), isClean()); - cohortSpec_ = null; - } - return cohortSpecBuilder_; - } - - private boolean keepEmptyRows_; - /** - * - * - *
-     * If false or unspecified, each row with all metrics equal to 0 will not be
-     * returned. If true, these rows will be returned if they are not separately
-     * removed by a filter.
-     * 
- * - * bool keep_empty_rows = 13; - * - * @return The keepEmptyRows. - */ - @java.lang.Override - public boolean getKeepEmptyRows() { - return keepEmptyRows_; - } - /** - * - * - *
-     * If false or unspecified, each row with all metrics equal to 0 will not be
-     * returned. If true, these rows will be returned if they are not separately
-     * removed by a filter.
-     * 
- * - * bool keep_empty_rows = 13; - * - * @param value The keepEmptyRows to set. - * @return This builder for chaining. - */ - public Builder setKeepEmptyRows(boolean value) { - - keepEmptyRows_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If false or unspecified, each row with all metrics equal to 0 will not be
-     * returned. If true, these rows will be returned if they are not separately
-     * removed by a filter.
-     * 
- * - * bool keep_empty_rows = 13; - * - * @return This builder for chaining. - */ - public Builder clearKeepEmptyRows() { - - keepEmptyRows_ = false; - onChanged(); - return this; - } - - private boolean returnPropertyQuota_; - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 14; - * - * @return The returnPropertyQuota. - */ - @java.lang.Override - public boolean getReturnPropertyQuota() { - return returnPropertyQuota_; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 14; - * - * @param value The returnPropertyQuota to set. - * @return This builder for chaining. - */ - public Builder setReturnPropertyQuota(boolean value) { - - returnPropertyQuota_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-     * 
- * - * bool return_property_quota = 14; - * - * @return This builder for chaining. - */ - public Builder clearReturnPropertyQuota() { - - returnPropertyQuota_ = 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.analytics.data.v1beta.RunReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.RunReportRequest) - private static final com.google.analytics.data.v1beta.RunReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.RunReportRequest(); - } - - public static com.google.analytics.data.v1beta.RunReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunReportRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java deleted file mode 100644 index 8453277c..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java +++ /dev/null @@ -1,575 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface RunReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.RunReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * A Google Analytics GA4 property identifier whose events are tracked.
-   * Specified in the URL path and not the body. To learn more, see [where to
-   * find your Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * Within a batch request, this property should either be unspecified or
-   * consistent with the batch-level property.
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.Dimension getDimensions(int index); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.Metric getMetrics(int index); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - java.util.List getDateRangesList(); - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - com.google.analytics.data.v1beta.DateRange getDateRanges(int index); - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - int getDateRangesCount(); - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - java.util.List - getDateRangesOrBuilderList(); - /** - * - * - *
-   * Date ranges of data to read. If multiple date ranges are requested, each
-   * response row will contain a zero based date range index. If two date
-   * ranges overlap, the event data for the overlapping days is included in the
-   * response rows for both date ranges. In a cohort request, this `dateRanges`
-   * must be unspecified.
-   * 
- * - * repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilder(int index); - - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getDimensionFilter(); - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1beta.FilterExpression getMetricFilter(); - /** - * - * - *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0.
-   * When paging, the first request does not specify offset; or equivalently,
-   * sets offset to 0; the first request returns the first `limit` of rows. The
-   * second request sets offset to the `limit` of the first request; the second
-   * request returns the second `limit` of rows.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * - * @return The offset. - */ - long getOffset(); - - /** - * - * - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   * The API can also return fewer rows than the requested `limit`, if there
-   * aren't as many dimension values as the `limit`. For instance, there are
-   * fewer than 300 possible values for the dimension `country`, so when
-   * reporting on only `country`, you can't get more than 300 rows, even if you
-   * set `limit` to a higher value.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * - * @return The limit. - */ - long getLimit(); - - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @return A list containing the metricAggregations. - */ - java.util.List getMetricAggregationsList(); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @return The count of metricAggregations. - */ - int getMetricAggregationsCount(); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations(int index); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @return A list containing the enum numeric values on the wire for metricAggregations. - */ - java.util.List getMetricAggregationsValueList(); - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of metricAggregations at the given index. - */ - int getMetricAggregationsValue(int index); - - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - java.util.List getOrderBysList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - com.google.analytics.data.v1beta.OrderBy getOrderBys(int index); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - int getOrderBysCount(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(int index); - - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 11; - * - * @return The currencyCode. - */ - java.lang.String getCurrencyCode(); - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the property's default currency.
-   * 
- * - * string currency_code = 11; - * - * @return The bytes for currencyCode. - */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); - - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * - * @return Whether the cohortSpec field is set. - */ - boolean hasCohortSpec(); - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * - * @return The cohortSpec. - */ - com.google.analytics.data.v1beta.CohortSpec getCohortSpec(); - /** - * - * - *
-   * Cohort group associated with this request. If there is a cohort group
-   * in the request the 'cohort' dimension must be present.
-   * 
- * - * .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuilder(); - - /** - * - * - *
-   * If false or unspecified, each row with all metrics equal to 0 will not be
-   * returned. If true, these rows will be returned if they are not separately
-   * removed by a filter.
-   * 
- * - * bool keep_empty_rows = 13; - * - * @return The keepEmptyRows. - */ - boolean getKeepEmptyRows(); - - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 14; - * - * @return The returnPropertyQuota. - */ - boolean getReturnPropertyQuota(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java deleted file mode 100644 index f2cdbdee..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java +++ /dev/null @@ -1,4318 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -/** - * - * - *
- * The response report table corresponding to a request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunReportResponse} - */ -public final class RunReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.RunReportResponse) - RunReportResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunReportResponse.newBuilder() to construct. - private RunReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunReportResponse() { - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - totals_ = java.util.Collections.emptyList(); - maximums_ = java.util.Collections.emptyList(); - minimums_ = java.util.Collections.emptyList(); - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunReportResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RunReportResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.DimensionHeader.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metricHeaders_.add( - input.readMessage( - com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - rows_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - totals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - totals_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - maximums_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - maximums_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - minimums_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - minimums_.add( - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry)); - break; - } - case 56: - { - rowCount_ = input.readInt32(); - break; - } - case 66: - { - com.google.analytics.data.v1beta.ResponseMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.analytics.data.v1beta.ResponseMetaData.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.analytics.data.v1beta.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1beta.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - totals_ = java.util.Collections.unmodifiableList(totals_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - maximums_ = java.util.Collections.unmodifiableList(maximums_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - minimums_ = java.util.Collections.unmodifiableList(minimums_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunReportResponse.class, - com.google.analytics.data.v1beta.RunReportResponse.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; - private java.util.List dimensionHeaders_; - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 2; - private java.util.List metricHeaders_; - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List getMetricHeadersList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 3; - private java.util.List rows_; - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int TOTALS_FIELD_NUMBER = 4; - private java.util.List totals_; - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public java.util.List getTotalsList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public java.util.List - getTotalsOrBuilderList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public int getTotalsCount() { - return totals_.size(); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getTotals(int index) { - return totals_.get(index); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getTotalsOrBuilder(int index) { - return totals_.get(index); - } - - public static final int MAXIMUMS_FIELD_NUMBER = 5; - private java.util.List maximums_; - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public java.util.List getMaximumsList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public java.util.List - getMaximumsOrBuilderList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public int getMaximumsCount() { - return maximums_.size(); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getMaximums(int index) { - return maximums_.get(index); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getMaximumsOrBuilder(int index) { - return maximums_.get(index); - } - - public static final int MINIMUMS_FIELD_NUMBER = 6; - private java.util.List minimums_; - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public java.util.List getMinimumsList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public java.util.List - getMinimumsOrBuilderList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public int getMinimumsCount() { - return minimums_.size(); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.Row getMinimums(int index) { - return minimums_.get(index); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.RowOrBuilder getMinimumsOrBuilder(int index) { - return minimums_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 7; - private int rowCount_; - /** - * - * - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 7; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int METADATA_FIELD_NUMBER = 8; - private com.google.analytics.data.v1beta.ResponseMetaData metadata_; - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData getMetadata() { - return metadata_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int PROPERTY_QUOTA_FIELD_NUMBER = 9; - private com.google.analytics.data.v1beta.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * - * @return Whether the propertyQuota field is set. - */ - @java.lang.Override - public boolean hasPropertyQuota() { - return propertyQuota_ != null; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - public static final int KIND_FIELD_NUMBER = 10; - private volatile java.lang.Object kind_; - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 10; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 10; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < dimensionHeaders_.size(); i++) { - output.writeMessage(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - output.writeMessage(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(3, rows_.get(i)); - } - for (int i = 0; i < totals_.size(); i++) { - output.writeMessage(4, totals_.get(i)); - } - for (int i = 0; i < maximums_.size(); i++) { - output.writeMessage(5, maximums_.get(i)); - } - for (int i = 0; i < minimums_.size(); i++) { - output.writeMessage(6, minimums_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(7, rowCount_); - } - if (metadata_ != null) { - output.writeMessage(8, getMetadata()); - } - if (propertyQuota_ != null) { - output.writeMessage(9, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); - } - for (int i = 0; i < totals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, totals_.get(i)); - } - for (int i = 0; i < maximums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, maximums_.get(i)); - } - for (int i = 0; i < minimums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, minimums_.get(i)); - } - if (rowCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, rowCount_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMetadata()); - } - if (propertyQuota_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, kind_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1beta.RunReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1beta.RunReportResponse other = - (com.google.analytics.data.v1beta.RunReportResponse) obj; - - if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; - if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; - if (!getRowsList().equals(other.getRowsList())) return false; - if (!getTotalsList().equals(other.getTotalsList())) return false; - if (!getMaximumsList().equals(other.getMaximumsList())) return false; - if (!getMinimumsList().equals(other.getMinimumsList())) return false; - if (getRowCount() != other.getRowCount()) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (hasPropertyQuota() != other.hasPropertyQuota()) return false; - if (hasPropertyQuota()) { - if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; - } - if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionHeadersCount() > 0) { - hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionHeadersList().hashCode(); - } - if (getMetricHeadersCount() > 0) { - hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getMetricHeadersList().hashCode(); - } - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - if (getTotalsCount() > 0) { - hash = (37 * hash) + TOTALS_FIELD_NUMBER; - hash = (53 * hash) + getTotalsList().hashCode(); - } - if (getMaximumsCount() > 0) { - hash = (37 * hash) + MAXIMUMS_FIELD_NUMBER; - hash = (53 * hash) + getMaximumsList().hashCode(); - } - if (getMinimumsCount() > 0) { - hash = (37 * hash) + MINIMUMS_FIELD_NUMBER; - hash = (53 * hash) + getMinimumsList().hashCode(); - } - hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRowCount(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasPropertyQuota()) { - hash = (37 * hash) + PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + getPropertyQuota().hashCode(); - } - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1beta.RunReportResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.data.v1beta.RunReportResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The response report table corresponding to a request.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1beta.RunReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.RunReportResponse) - com.google.analytics.data.v1beta.RunReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1beta.RunReportResponse.class, - com.google.analytics.data.v1beta.RunReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1beta.RunReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - getTotalsFieldBuilder(); - getMaximumsFieldBuilder(); - getMinimumsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dimensionHeadersBuilder_.clear(); - } - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metricHeadersBuilder_.clear(); - } - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - rowsBuilder_.clear(); - } - if (totalsBuilder_ == null) { - totals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - totalsBuilder_.clear(); - } - if (maximumsBuilder_ == null) { - maximums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - maximumsBuilder_.clear(); - } - if (minimumsBuilder_ == null) { - minimums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - minimumsBuilder_.clear(); - } - rowCount_ = 0; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = null; - } else { - propertyQuota_ = null; - propertyQuotaBuilder_ = null; - } - kind_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.RunReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportResponse build() { - com.google.analytics.data.v1beta.RunReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportResponse buildPartial() { - com.google.analytics.data.v1beta.RunReportResponse result = - new com.google.analytics.data.v1beta.RunReportResponse(this); - int from_bitField0_ = bitField0_; - if (dimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionHeaders_ = dimensionHeaders_; - } else { - result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); - } - if (metricHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricHeaders_ = metricHeaders_; - } else { - result.metricHeaders_ = metricHeadersBuilder_.build(); - } - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - if (totalsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - totals_ = java.util.Collections.unmodifiableList(totals_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.totals_ = totals_; - } else { - result.totals_ = totalsBuilder_.build(); - } - if (maximumsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - maximums_ = java.util.Collections.unmodifiableList(maximums_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.maximums_ = maximums_; - } else { - result.maximums_ = maximumsBuilder_.build(); - } - if (minimumsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - minimums_ = java.util.Collections.unmodifiableList(minimums_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.minimums_ = minimums_; - } else { - result.minimums_ = minimumsBuilder_.build(); - } - result.rowCount_ = rowCount_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (propertyQuotaBuilder_ == null) { - result.propertyQuota_ = propertyQuota_; - } else { - result.propertyQuota_ = propertyQuotaBuilder_.build(); - } - result.kind_ = kind_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1beta.RunReportResponse) { - return mergeFrom((com.google.analytics.data.v1beta.RunReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1beta.RunReportResponse other) { - if (other == com.google.analytics.data.v1beta.RunReportResponse.getDefaultInstance()) - return this; - if (dimensionHeadersBuilder_ == null) { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeaders_.isEmpty()) { - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.addAll(other.dimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeadersBuilder_.isEmpty()) { - dimensionHeadersBuilder_.dispose(); - dimensionHeadersBuilder_ = null; - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionHeadersFieldBuilder() - : null; - } else { - dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); - } - } - } - if (metricHeadersBuilder_ == null) { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeaders_.isEmpty()) { - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricHeadersIsMutable(); - metricHeaders_.addAll(other.metricHeaders_); - } - onChanged(); - } - } else { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeadersBuilder_.isEmpty()) { - metricHeadersBuilder_.dispose(); - metricHeadersBuilder_ = null; - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - metricHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricHeadersFieldBuilder() - : null; - } else { - metricHeadersBuilder_.addAllMessages(other.metricHeaders_); - } - } - } - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowsFieldBuilder() - : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (totalsBuilder_ == null) { - if (!other.totals_.isEmpty()) { - if (totals_.isEmpty()) { - totals_ = other.totals_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTotalsIsMutable(); - totals_.addAll(other.totals_); - } - onChanged(); - } - } else { - if (!other.totals_.isEmpty()) { - if (totalsBuilder_.isEmpty()) { - totalsBuilder_.dispose(); - totalsBuilder_ = null; - totals_ = other.totals_; - bitField0_ = (bitField0_ & ~0x00000008); - totalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTotalsFieldBuilder() - : null; - } else { - totalsBuilder_.addAllMessages(other.totals_); - } - } - } - if (maximumsBuilder_ == null) { - if (!other.maximums_.isEmpty()) { - if (maximums_.isEmpty()) { - maximums_ = other.maximums_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureMaximumsIsMutable(); - maximums_.addAll(other.maximums_); - } - onChanged(); - } - } else { - if (!other.maximums_.isEmpty()) { - if (maximumsBuilder_.isEmpty()) { - maximumsBuilder_.dispose(); - maximumsBuilder_ = null; - maximums_ = other.maximums_; - bitField0_ = (bitField0_ & ~0x00000010); - maximumsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMaximumsFieldBuilder() - : null; - } else { - maximumsBuilder_.addAllMessages(other.maximums_); - } - } - } - if (minimumsBuilder_ == null) { - if (!other.minimums_.isEmpty()) { - if (minimums_.isEmpty()) { - minimums_ = other.minimums_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureMinimumsIsMutable(); - minimums_.addAll(other.minimums_); - } - onChanged(); - } - } else { - if (!other.minimums_.isEmpty()) { - if (minimumsBuilder_.isEmpty()) { - minimumsBuilder_.dispose(); - minimumsBuilder_ = null; - minimums_ = other.minimums_; - bitField0_ = (bitField0_ & ~0x00000020); - minimumsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMinimumsFieldBuilder() - : null; - } else { - minimumsBuilder_.addAllMessages(other.minimums_); - } - } - } - if (other.getRowCount() != 0) { - setRowCount(other.getRowCount()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasPropertyQuota()) { - mergePropertyQuota(other.getPropertyQuota()); - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.data.v1beta.RunReportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunReportResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List dimensionHeaders_ = - java.util.Collections.emptyList(); - - private void ensureDimensionHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList( - dimensionHeaders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersList() { - if (dimensionHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } else { - return dimensionHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public int getDimensionHeadersCount() { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.size(); - } else { - return dimensionHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1beta.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder addAllDimensionHeaders( - java.lang.Iterable values) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); - onChanged(); - } else { - dimensionHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder clearDimensionHeaders() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public Builder removeDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.remove(index); - onChanged(); - } else { - dimensionHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder getDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersOrBuilderList() { - if (dimensionHeadersBuilder_ != null) { - return dimensionHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1beta.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.DimensionHeader, - com.google.analytics.data.v1beta.DimensionHeader.Builder, - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder>( - dimensionHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionHeaders_ = null; - } - return dimensionHeadersBuilder_; - } - - private java.util.List metricHeaders_ = - java.util.Collections.emptyList(); - - private void ensureMetricHeadersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = - new java.util.ArrayList(metricHeaders_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public java.util.List getMetricHeadersList() { - if (metricHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricHeaders_); - } else { - return metricHeadersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public int getMetricHeadersCount() { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.size(); - } else { - return metricHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, value); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1beta.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder addAllMetricHeaders( - java.lang.Iterable values) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); - onChanged(); - } else { - metricHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder clearMetricHeaders() { - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricHeadersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public Builder removeMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.remove(index); - onChanged(); - } else { - metricHeadersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder getMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersOrBuilderList() { - if (metricHeadersBuilder_ != null) { - return metricHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricHeaders_); - } - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1beta.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.MetricHeader, - com.google.analytics.data.v1beta.MetricHeader.Builder, - com.google.analytics.data.v1beta.MetricHeaderOrBuilder>( - metricHeaders_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricHeaders_ = null; - } - return metricHeadersBuilder_; - } - - private java.util.List rows_ = - java.util.Collections.emptyList(); - - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder setRows(int index, com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows(int index, com.google.analytics.data.v1beta.Row value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public com.google.analytics.data.v1beta.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private java.util.List totals_ = - java.util.Collections.emptyList(); - - private void ensureTotalsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - totals_ = new java.util.ArrayList(totals_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - totalsBuilder_; - - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public java.util.List getTotalsList() { - if (totalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(totals_); - } else { - return totalsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public int getTotalsCount() { - if (totalsBuilder_ == null) { - return totals_.size(); - } else { - return totalsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row getTotals(int index) { - if (totalsBuilder_ == null) { - return totals_.get(index); - } else { - return totalsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder setTotals(int index, com.google.analytics.data.v1beta.Row value) { - if (totalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalsIsMutable(); - totals_.set(index, value); - onChanged(); - } else { - totalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder setTotals( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.set(index, builderForValue.build()); - onChanged(); - } else { - totalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals(com.google.analytics.data.v1beta.Row value) { - if (totalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalsIsMutable(); - totals_.add(value); - onChanged(); - } else { - totalsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals(int index, com.google.analytics.data.v1beta.Row value) { - if (totalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTotalsIsMutable(); - totals_.add(index, value); - onChanged(); - } else { - totalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.add(builderForValue.build()); - onChanged(); - } else { - totalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addTotals( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.add(index, builderForValue.build()); - onChanged(); - } else { - totalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder addAllTotals( - java.lang.Iterable values) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, totals_); - onChanged(); - } else { - totalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder clearTotals() { - if (totalsBuilder_ == null) { - totals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - totalsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public Builder removeTotals(int index) { - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.remove(index); - onChanged(); - } else { - totalsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder getTotalsBuilder(int index) { - return getTotalsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getTotalsOrBuilder(int index) { - if (totalsBuilder_ == null) { - return totals_.get(index); - } else { - return totalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public java.util.List - getTotalsOrBuilderList() { - if (totalsBuilder_ != null) { - return totalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(totals_); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder addTotalsBuilder() { - return getTotalsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public com.google.analytics.data.v1beta.Row.Builder addTotalsBuilder(int index) { - return getTotalsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - public java.util.List getTotalsBuilderList() { - return getTotalsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getTotalsFieldBuilder() { - if (totalsBuilder_ == null) { - totalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - totals_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - totals_ = null; - } - return totalsBuilder_; - } - - private java.util.List maximums_ = - java.util.Collections.emptyList(); - - private void ensureMaximumsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - maximums_ = new java.util.ArrayList(maximums_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - maximumsBuilder_; - - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public java.util.List getMaximumsList() { - if (maximumsBuilder_ == null) { - return java.util.Collections.unmodifiableList(maximums_); - } else { - return maximumsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public int getMaximumsCount() { - if (maximumsBuilder_ == null) { - return maximums_.size(); - } else { - return maximumsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row getMaximums(int index) { - if (maximumsBuilder_ == null) { - return maximums_.get(index); - } else { - return maximumsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder setMaximums(int index, com.google.analytics.data.v1beta.Row value) { - if (maximumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaximumsIsMutable(); - maximums_.set(index, value); - onChanged(); - } else { - maximumsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder setMaximums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.set(index, builderForValue.build()); - onChanged(); - } else { - maximumsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums(com.google.analytics.data.v1beta.Row value) { - if (maximumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaximumsIsMutable(); - maximums_.add(value); - onChanged(); - } else { - maximumsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums(int index, com.google.analytics.data.v1beta.Row value) { - if (maximumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMaximumsIsMutable(); - maximums_.add(index, value); - onChanged(); - } else { - maximumsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.add(builderForValue.build()); - onChanged(); - } else { - maximumsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addMaximums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.add(index, builderForValue.build()); - onChanged(); - } else { - maximumsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder addAllMaximums( - java.lang.Iterable values) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, maximums_); - onChanged(); - } else { - maximumsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder clearMaximums() { - if (maximumsBuilder_ == null) { - maximums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - maximumsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public Builder removeMaximums(int index) { - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.remove(index); - onChanged(); - } else { - maximumsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder getMaximumsBuilder(int index) { - return getMaximumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getMaximumsOrBuilder(int index) { - if (maximumsBuilder_ == null) { - return maximums_.get(index); - } else { - return maximumsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public java.util.List - getMaximumsOrBuilderList() { - if (maximumsBuilder_ != null) { - return maximumsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(maximums_); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder addMaximumsBuilder() { - return getMaximumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public com.google.analytics.data.v1beta.Row.Builder addMaximumsBuilder(int index) { - return getMaximumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - public java.util.List getMaximumsBuilderList() { - return getMaximumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getMaximumsFieldBuilder() { - if (maximumsBuilder_ == null) { - maximumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - maximums_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - maximums_ = null; - } - return maximumsBuilder_; - } - - private java.util.List minimums_ = - java.util.Collections.emptyList(); - - private void ensureMinimumsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - minimums_ = new java.util.ArrayList(minimums_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - minimumsBuilder_; - - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public java.util.List getMinimumsList() { - if (minimumsBuilder_ == null) { - return java.util.Collections.unmodifiableList(minimums_); - } else { - return minimumsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public int getMinimumsCount() { - if (minimumsBuilder_ == null) { - return minimums_.size(); - } else { - return minimumsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row getMinimums(int index) { - if (minimumsBuilder_ == null) { - return minimums_.get(index); - } else { - return minimumsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder setMinimums(int index, com.google.analytics.data.v1beta.Row value) { - if (minimumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinimumsIsMutable(); - minimums_.set(index, value); - onChanged(); - } else { - minimumsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder setMinimums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.set(index, builderForValue.build()); - onChanged(); - } else { - minimumsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums(com.google.analytics.data.v1beta.Row value) { - if (minimumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinimumsIsMutable(); - minimums_.add(value); - onChanged(); - } else { - minimumsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums(int index, com.google.analytics.data.v1beta.Row value) { - if (minimumsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMinimumsIsMutable(); - minimums_.add(index, value); - onChanged(); - } else { - minimumsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums(com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.add(builderForValue.build()); - onChanged(); - } else { - minimumsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addMinimums( - int index, com.google.analytics.data.v1beta.Row.Builder builderForValue) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.add(index, builderForValue.build()); - onChanged(); - } else { - minimumsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder addAllMinimums( - java.lang.Iterable values) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, minimums_); - onChanged(); - } else { - minimumsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder clearMinimums() { - if (minimumsBuilder_ == null) { - minimums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - minimumsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public Builder removeMinimums(int index) { - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.remove(index); - onChanged(); - } else { - minimumsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row.Builder getMinimumsBuilder(int index) { - return getMinimumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.RowOrBuilder getMinimumsOrBuilder(int index) { - if (minimumsBuilder_ == null) { - return minimums_.get(index); - } else { - return minimumsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public java.util.List - getMinimumsOrBuilderList() { - if (minimumsBuilder_ != null) { - return minimumsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(minimums_); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row.Builder addMinimumsBuilder() { - return getMinimumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public com.google.analytics.data.v1beta.Row.Builder addMinimumsBuilder(int index) { - return getMinimumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1beta.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - public java.util.List getMinimumsBuilderList() { - return getMinimumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder> - getMinimumsFieldBuilder() { - if (minimumsBuilder_ == null) { - minimumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1beta.Row, - com.google.analytics.data.v1beta.Row.Builder, - com.google.analytics.data.v1beta.RowOrBuilder>( - minimums_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - minimums_ = null; - } - return minimumsBuilder_; - } - - private int rowCount_; - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 7; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 7; - * - * @param value The rowCount to set. - * @return This builder for chaining. - */ - public Builder setRowCount(int value) { - - rowCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearRowCount() { - - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1beta.ResponseMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData, - com.google.analytics.data.v1beta.ResponseMetaData.Builder, - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * - * @return The metadata. - */ - public com.google.analytics.data.v1beta.ResponseMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - public Builder setMetadata(com.google.analytics.data.v1beta.ResponseMetaData value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - public Builder setMetadata( - com.google.analytics.data.v1beta.ResponseMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - public Builder mergeMetadata(com.google.analytics.data.v1beta.ResponseMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.analytics.data.v1beta.ResponseMetaData.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - public com.google.analytics.data.v1beta.ResponseMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData, - com.google.analytics.data.v1beta.ResponseMetaData.Builder, - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.ResponseMetaData, - com.google.analytics.data.v1beta.ResponseMetaData.Builder, - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.analytics.data.v1beta.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * - * @return Whether the propertyQuota field is set. - */ - public boolean hasPropertyQuota() { - return propertyQuotaBuilder_ != null || propertyQuota_ != null; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1beta.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyQuota_ = value; - onChanged(); - } else { - propertyQuotaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1beta.PropertyQuota.Builder builderForValue) { - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = builderForValue.build(); - onChanged(); - } else { - propertyQuotaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1beta.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1beta.PropertyQuota.newBuilder(propertyQuota_) - .mergeFrom(value) - .buildPartial(); - } else { - propertyQuota_ = value; - } - onChanged(); - } else { - propertyQuotaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - public Builder clearPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - propertyQuota_ = null; - onChanged(); - } else { - propertyQuota_ = null; - propertyQuotaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - public com.google.analytics.data.v1beta.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1beta.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.PropertyQuota, - com.google.analytics.data.v1beta.PropertyQuota.Builder, - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder>( - getPropertyQuota(), getParentForChildren(), isClean()); - propertyQuota_ = null; - } - return propertyQuotaBuilder_; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 10; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 10; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 10; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 10; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - - kind_ = getDefaultInstance().getKind(); - onChanged(); - return this; - } - /** - * - * - *
-     * Identifies what kind of resource this message is. This `kind` is always the
-     * fixed string "analyticsData#runReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 10; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kind_ = 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.analytics.data.v1beta.RunReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.RunReportResponse) - private static final com.google.analytics.data.v1beta.RunReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.RunReportResponse(); - } - - public static com.google.analytics.data.v1beta.RunReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunReportResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1beta.RunReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java deleted file mode 100644 index a9f45e94..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1beta/analytics_data_api.proto - -package com.google.analytics.data.v1beta; - -public interface RunReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.RunReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - java.util.List getDimensionHeadersList(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1beta.DimensionHeader getDimensionHeaders(int index); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1beta.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(int index); - - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - java.util.List getMetricHeadersList(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1beta.MetricHeader getMetricHeaders(int index); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - int getMetricHeadersCount(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1beta.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - com.google.analytics.data.v1beta.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row rows = 3; - */ - com.google.analytics.data.v1beta.RowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - java.util.List getTotalsList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - com.google.analytics.data.v1beta.Row getTotals(int index); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - int getTotalsCount(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - java.util.List getTotalsOrBuilderList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row totals = 4; - */ - com.google.analytics.data.v1beta.RowOrBuilder getTotalsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - java.util.List getMaximumsList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - com.google.analytics.data.v1beta.Row getMaximums(int index); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - int getMaximumsCount(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - java.util.List - getMaximumsOrBuilderList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - com.google.analytics.data.v1beta.RowOrBuilder getMaximumsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - java.util.List getMinimumsList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - com.google.analytics.data.v1beta.Row getMinimums(int index); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - int getMinimumsCount(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - java.util.List - getMinimumsOrBuilderList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - com.google.analytics.data.v1beta.RowOrBuilder getMinimumsOrBuilder(int index); - - /** - * - * - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 7; - * - * @return The rowCount. - */ - int getRowCount(); - - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * - * @return The metadata. - */ - com.google.analytics.data.v1beta.ResponseMetaData getMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * - * @return Whether the propertyQuota field is set. - */ - boolean hasPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); - - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 10; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 10; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); -} diff --git a/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto b/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto deleted file mode 100644 index b32577e7..00000000 --- a/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto +++ /dev/null @@ -1,620 +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.analytics.data.v1beta; - -import "google/analytics/data/v1beta/data.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1beta;data"; -option java_multiple_files = true; -option java_outer_classname = "AnalyticsDataApiProto"; -option java_package = "com.google.analytics.data.v1beta"; - -// Google Analytics reporting data service. -service BetaAnalyticsData { - option (google.api.default_host) = "analyticsdata.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/analytics," - "https://www.googleapis.com/auth/analytics.readonly"; - - // Returns a customized report of your Google Analytics event data. Reports - // contain statistics derived from data collected by the Google Analytics - // tracking code. The data returned from the API is as a table with columns - // for the requested dimensions and metrics. Metrics are individual - // measurements of user activity on your property, such as active users or - // event count. Dimensions break down metrics across some common criteria, - // such as country or event name. - rpc RunReport(RunReportRequest) returns (RunReportResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:runReport" - body: "*" - }; - } - - // Returns a customized pivot report of your Google Analytics event data. - // Pivot reports are more advanced and expressive formats than regular - // reports. In a pivot report, dimensions are only visible if they are - // included in a pivot. Multiple pivots can be specified to further dissect - // your data. - rpc RunPivotReport(RunPivotReportRequest) returns (RunPivotReportResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:runPivotReport" - body: "*" - }; - } - - // Returns multiple reports in a batch. All reports must be for the same - // GA4 Property. - rpc BatchRunReports(BatchRunReportsRequest) returns (BatchRunReportsResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:batchRunReports" - body: "*" - }; - } - - // Returns multiple pivot reports in a batch. All reports must be for the same - // GA4 Property. - rpc BatchRunPivotReports(BatchRunPivotReportsRequest) returns (BatchRunPivotReportsResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:batchRunPivotReports" - body: "*" - }; - } - - // Returns metadata for dimensions and metrics available in reporting methods. - // Used to explore the dimensions and metrics. In this method, a Google - // Analytics GA4 Property Identifier is specified in the request, and - // the metadata response includes Custom dimensions and metrics as well as - // Universal metadata. - // - // For example if a custom metric with parameter name `levels_unlocked` is - // registered to a property, the Metadata response will contain - // `customEvent:levels_unlocked`. Universal metadata are dimensions and - // metrics applicable to any property such as `country` and `totalUsers`. - rpc GetMetadata(GetMetadataRequest) returns (Metadata) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/metadata}" - }; - option (google.api.method_signature) = "name"; - } - - // The Google Analytics Realtime API returns a customized report of realtime - // event data for your property. These reports show events and usage from the - // last 30 minutes. - rpc RunRealtimeReport(RunRealtimeReportRequest) returns (RunRealtimeReportResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:runRealtimeReport" - body: "*" - }; - } - - // This compatibility method lists dimensions and metrics that can be added to - // a report request and maintain compatibility. This method fails if the - // request's dimensions and metrics are incompatible. - // - // In Google Analytics, reports fail if they request incompatible dimensions - // and/or metrics; in that case, you will need to remove dimensions and/or - // metrics from the incompatible report until the report is compatible. - // - // The Realtime and Core reports have different compatibility rules. This - // method checks compatibility for Core reports. - rpc CheckCompatibility(CheckCompatibilityRequest) returns (CheckCompatibilityResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:checkCompatibility" - body: "*" - }; - } -} - -// The request for compatibility information for a report's dimensions and -// metrics. Check compatibility provides a preview of the compatibility of a -// report; fields shared with the `runReport` request should be the same values -// as in your `runReport` request. -message CheckCompatibilityRequest { - // A Google Analytics GA4 property identifier whose events are tracked. To - // learn more, see [where to find your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // `property` should be the same value as in your `runReport` request. - // - // Example: properties/1234 - // - // Set the Property ID to 0 for compatibility checking on dimensions and - // metrics common to all properties. In this special mode, this method will - // not return custom dimensions and metrics. - string property = 1; - - // The dimensions in this report. `dimensions` should be the same value as in - // your `runReport` request. - repeated Dimension dimensions = 2; - - // The metrics in this report. `metrics` should be the same value as in your - // `runReport` request. - repeated Metric metrics = 3; - - // The filter clause of dimensions. `dimensionFilter` should be the same value - // as in your `runReport` request. - FilterExpression dimension_filter = 4; - - // The filter clause of metrics. `metricFilter` should be the same value as in - // your `runReport` request - FilterExpression metric_filter = 5; - - // Filters the dimensions and metrics in the response to just this - // compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - // to only return compatible dimensions & metrics. - Compatibility compatibility_filter = 6; -} - -// The compatibility response with the compatibility of each dimension & metric. -message CheckCompatibilityResponse { - // The compatibility of each dimension. - repeated DimensionCompatibility dimension_compatibilities = 1; - - // The compatibility of each metric. - repeated MetricCompatibility metric_compatibilities = 2; -} - -// The dimensions and metrics currently accepted in reporting methods. -message Metadata { - option (google.api.resource) = { - type: "analyticsdata.googleapis.com/Metadata" - pattern: "properties/{property}/metadata" - }; - - // Resource name of this metadata. - string name = 3; - - // The dimension descriptions. - repeated DimensionMetadata dimensions = 1; - - // The metric descriptions. - repeated MetricMetadata metrics = 2; -} - -// The request to generate a report. -message RunReportRequest { - // A Google Analytics GA4 property identifier whose events are tracked. - // Specified in the URL path and not the body. To learn more, see [where to - // find your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // Within a batch request, this property should either be unspecified or - // consistent with the batch-level property. - // - // Example: properties/1234 - string property = 1; - - // The dimensions requested and displayed. - repeated Dimension dimensions = 2; - - // The metrics requested and displayed. - repeated Metric metrics = 3; - - // Date ranges of data to read. If multiple date ranges are requested, each - // response row will contain a zero based date range index. If two date - // ranges overlap, the event data for the overlapping days is included in the - // response rows for both date ranges. In a cohort request, this `dateRanges` - // must be unspecified. - repeated DateRange date_ranges = 4; - - // Dimension filters allow you to ask for only specific dimension values in - // the report. To learn more, see [Fundamentals of Dimension - // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - // for examples. Metrics cannot be used in this filter. - FilterExpression dimension_filter = 5; - - // The filter clause of metrics. Applied at post aggregation phase, similar to - // SQL having-clause. Dimensions cannot be used in this filter. - FilterExpression metric_filter = 6; - - // The row count of the start row. The first row is counted as row 0. - // - // When paging, the first request does not specify offset; or equivalently, - // sets offset to 0; the first request returns the first `limit` of rows. The - // second request sets offset to the `limit` of the first request; the second - // request returns the second `limit` of rows. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 offset = 7; - - // The number of rows to return. If unspecified, 10,000 rows are returned. The - // API returns a maximum of 100,000 rows per request, no matter how many you - // ask for. `limit` must be positive. - // - // The API can also return fewer rows than the requested `limit`, if there - // aren't as many dimension values as the `limit`. For instance, there are - // fewer than 300 possible values for the dimension `country`, so when - // reporting on only `country`, you can't get more than 300 rows, even if you - // set `limit` to a higher value. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 limit = 8; - - // Aggregation of metrics. Aggregated metric values will be shown in rows - // where the dimension_values are set to "RESERVED_(MetricAggregation)". - repeated MetricAggregation metric_aggregations = 9; - - // Specifies how rows are ordered in the response. - repeated OrderBy order_bys = 10; - - // A currency code in ISO4217 format, such as "AED", "USD", "JPY". - // If the field is empty, the report uses the property's default currency. - string currency_code = 11; - - // Cohort group associated with this request. If there is a cohort group - // in the request the 'cohort' dimension must be present. - CohortSpec cohort_spec = 12; - - // If false or unspecified, each row with all metrics equal to 0 will not be - // returned. If true, these rows will be returned if they are not separately - // removed by a filter. - bool keep_empty_rows = 13; - - // Toggles whether to return the current state of this Analytics Property's - // quota. Quota is returned in [PropertyQuota](#PropertyQuota). - bool return_property_quota = 14; -} - -// The response report table corresponding to a request. -message RunReportResponse { - // Describes dimension columns. The number of DimensionHeaders and ordering of - // DimensionHeaders matches the dimensions present in rows. - repeated DimensionHeader dimension_headers = 1; - - // Describes metric columns. The number of MetricHeaders and ordering of - // MetricHeaders matches the metrics present in rows. - repeated MetricHeader metric_headers = 2; - - // Rows of dimension value combinations and metric values in the report. - repeated Row rows = 3; - - // If requested, the totaled values of metrics. - repeated Row totals = 4; - - // If requested, the maximum values of metrics. - repeated Row maximums = 5; - - // If requested, the minimum values of metrics. - repeated Row minimums = 6; - - // The total number of rows in the query result. `rowCount` is independent of - // the number of rows returned in the response, the `limit` request - // parameter, and the `offset` request parameter. For example if a query - // returns 175 rows and includes `limit` of 50 in the API request, the - // response will contain `rowCount` of 175 but only 50 rows. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int32 row_count = 7; - - // Metadata for the report. - ResponseMetaData metadata = 8; - - // This Analytics Property's quota state including this request. - PropertyQuota property_quota = 9; - - // Identifies what kind of resource this message is. This `kind` is always the - // fixed string "analyticsData#runReport". Useful to distinguish between - // response types in JSON. - string kind = 10; -} - -// The request to generate a pivot report. -message RunPivotReportRequest { - // A Google Analytics GA4 property identifier whose events are tracked. - // Specified in the URL path and not the body. To learn more, see [where to - // find your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // Within a batch request, this property should either be unspecified or - // consistent with the batch-level property. - // - // Example: properties/1234 - string property = 1; - - // The dimensions requested. All defined dimensions must be used by one of the - // following: dimension_expression, dimension_filter, pivots, order_bys. - repeated Dimension dimensions = 2; - - // The metrics requested, at least one metric needs to be specified. All - // defined metrics must be used by one of the following: metric_expression, - // metric_filter, order_bys. - repeated Metric metrics = 3; - - // The date range to retrieve event data for the report. If multiple date - // ranges are specified, event data from each date range is used in the - // report. A special dimension with field name "dateRange" can be included in - // a Pivot's field names; if included, the report compares between date - // ranges. In a cohort request, this `dateRanges` must be unspecified. - repeated DateRange date_ranges = 4; - - // Describes the visual format of the report's dimensions in columns or rows. - // The union of the fieldNames (dimension names) in all pivots must be a - // subset of dimension names defined in Dimensions. No two pivots can share a - // dimension. A dimension is only visible if it appears in a pivot. - repeated Pivot pivots = 5; - - // The filter clause of dimensions. Dimensions must be requested to be used in - // this filter. Metrics cannot be used in this filter. - FilterExpression dimension_filter = 6; - - // The filter clause of metrics. Applied at post aggregation phase, similar to - // SQL having-clause. Metrics must be requested to be used in this filter. - // Dimensions cannot be used in this filter. - FilterExpression metric_filter = 7; - - // A currency code in ISO4217 format, such as "AED", "USD", "JPY". - // If the field is empty, the report uses the property's default currency. - string currency_code = 8; - - // Cohort group associated with this request. If there is a cohort group - // in the request the 'cohort' dimension must be present. - CohortSpec cohort_spec = 9; - - // If false or unspecified, each row with all metrics equal to 0 will not be - // returned. If true, these rows will be returned if they are not separately - // removed by a filter. - bool keep_empty_rows = 10; - - // Toggles whether to return the current state of this Analytics Property's - // quota. Quota is returned in [PropertyQuota](#PropertyQuota). - bool return_property_quota = 11; -} - -// The response pivot report table corresponding to a pivot request. -message RunPivotReportResponse { - // Summarizes the columns and rows created by a pivot. Each pivot in the - // request produces one header in the response. If we have a request like - // this: - // - // "pivots": [{ - // "fieldNames": ["country", - // "city"] - // }, - // { - // "fieldNames": "eventName" - // }] - // - // We will have the following `pivotHeaders` in the response: - // - // "pivotHeaders" : [{ - // "dimensionHeaders": [{ - // "dimensionValues": [ - // { "value": "United Kingdom" }, - // { "value": "London" } - // ] - // }, - // { - // "dimensionValues": [ - // { "value": "Japan" }, - // { "value": "Osaka" } - // ] - // }] - // }, - // { - // "dimensionHeaders": [{ - // "dimensionValues": [{ "value": "session_start" }] - // }, - // { - // "dimensionValues": [{ "value": "scroll" }] - // }] - // }] - repeated PivotHeader pivot_headers = 1; - - // Describes dimension columns. The number of DimensionHeaders and ordering of - // DimensionHeaders matches the dimensions present in rows. - repeated DimensionHeader dimension_headers = 2; - - // Describes metric columns. The number of MetricHeaders and ordering of - // MetricHeaders matches the metrics present in rows. - repeated MetricHeader metric_headers = 3; - - // Rows of dimension value combinations and metric values in the report. - repeated Row rows = 4; - - // Aggregation of metric values. Can be totals, minimums, or maximums. The - // returned aggregations are controlled by the metric_aggregations in the - // pivot. The type of aggregation returned in each row is shown by the - // dimension_values which are set to "RESERVED_". - repeated Row aggregates = 5; - - // Metadata for the report. - ResponseMetaData metadata = 6; - - // This Analytics Property's quota state including this request. - PropertyQuota property_quota = 7; - - // Identifies what kind of resource this message is. This `kind` is always the - // fixed string "analyticsData#runPivotReport". Useful to distinguish between - // response types in JSON. - string kind = 8; -} - -// The batch request containing multiple report requests. -message BatchRunReportsRequest { - // A Google Analytics GA4 property identifier whose events are tracked. - // Specified in the URL path and not the body. To learn more, see [where to - // find your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // This property must be specified for the batch. The property within - // RunReportRequest may either be unspecified or consistent with this - // property. - // - // Example: properties/1234 - string property = 1; - - // Individual requests. Each request has a separate report response. Each - // batch request is allowed up to 5 requests. - repeated RunReportRequest requests = 2; -} - -// The batch response containing multiple reports. -message BatchRunReportsResponse { - // Individual responses. Each response has a separate report request. - repeated RunReportResponse reports = 1; - - // Identifies what kind of resource this message is. This `kind` is always the - // fixed string "analyticsData#batchRunReports". Useful to distinguish between - // response types in JSON. - string kind = 2; -} - -// The batch request containing multiple pivot report requests. -message BatchRunPivotReportsRequest { - // A Google Analytics GA4 property identifier whose events are tracked. - // Specified in the URL path and not the body. To learn more, see [where to - // find your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // This property must be specified for the batch. The property within - // RunPivotReportRequest may either be unspecified or consistent with this - // property. - // - // Example: properties/1234 - string property = 1; - - // Individual requests. Each request has a separate pivot report response. - // Each batch request is allowed up to 5 requests. - repeated RunPivotReportRequest requests = 2; -} - -// The batch response containing multiple pivot reports. -message BatchRunPivotReportsResponse { - // Individual responses. Each response has a separate pivot report request. - repeated RunPivotReportResponse pivot_reports = 1; - - // Identifies what kind of resource this message is. This `kind` is always the - // fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - // between response types in JSON. - string kind = 2; -} - -// Request for a property's dimension and metric metadata. -message GetMetadataRequest { - // Required. The resource name of the metadata to retrieve. This name field is - // specified in the URL path and not URL parameters. Property is a numeric - // Google Analytics GA4 Property identifier. To learn more, see [where to find - // your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // - // Example: properties/1234/metadata - // - // Set the Property ID to 0 for dimensions and metrics common to all - // properties. In this special mode, this method will not return custom - // dimensions and metrics. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsdata.googleapis.com/Metadata" - } - ]; -} - -// The request to generate a realtime report. -message RunRealtimeReportRequest { - // A Google Analytics GA4 property identifier whose events are tracked. - // Specified in the URL path and not the body. To learn more, see [where to - // find your Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - // - // Example: properties/1234 - string property = 1; - - // The dimensions requested and displayed. - repeated Dimension dimensions = 2; - - // The metrics requested and displayed. - repeated Metric metrics = 3; - - // The filter clause of dimensions. Dimensions must be requested to be used in - // this filter. Metrics cannot be used in this filter. - FilterExpression dimension_filter = 4; - - // The filter clause of metrics. Applied at post aggregation phase, similar to - // SQL having-clause. Metrics must be requested to be used in this filter. - // Dimensions cannot be used in this filter. - FilterExpression metric_filter = 5; - - // The number of rows to return. If unspecified, 10,000 rows are returned. The - // API returns a maximum of 100,000 rows per request, no matter how many you - // ask for. `limit` must be positive. - // - // The API can also return fewer rows than the requested `limit`, if there - // aren't as many dimension values as the `limit`. For instance, there are - // fewer than 300 possible values for the dimension `country`, so when - // reporting on only `country`, you can't get more than 300 rows, even if you - // set `limit` to a higher value. - int64 limit = 6; - - // Aggregation of metrics. Aggregated metric values will be shown in rows - // where the dimension_values are set to "RESERVED_(MetricAggregation)". - repeated MetricAggregation metric_aggregations = 7; - - // Specifies how rows are ordered in the response. - repeated OrderBy order_bys = 8; - - // Toggles whether to return the current state of this Analytics Property's - // Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - bool return_property_quota = 9; - - // The minute ranges of event data to read. If unspecified, one minute range - // for the last 30 minutes will be used. If multiple minute ranges are - // requested, each response row will contain a zero based minute range index. - // If two minute ranges overlap, the event data for the overlapping minutes is - // included in the response rows for both minute ranges. - repeated MinuteRange minute_ranges = 10; -} - -// The response realtime report table corresponding to a request. -message RunRealtimeReportResponse { - // Describes dimension columns. The number of DimensionHeaders and ordering of - // DimensionHeaders matches the dimensions present in rows. - repeated DimensionHeader dimension_headers = 1; - - // Describes metric columns. The number of MetricHeaders and ordering of - // MetricHeaders matches the metrics present in rows. - repeated MetricHeader metric_headers = 2; - - // Rows of dimension value combinations and metric values in the report. - repeated Row rows = 3; - - // If requested, the totaled values of metrics. - repeated Row totals = 4; - - // If requested, the maximum values of metrics. - repeated Row maximums = 5; - - // If requested, the minimum values of metrics. - repeated Row minimums = 6; - - // The total number of rows in the query result. `rowCount` is independent of - // the number of rows returned in the response and the `limit` request - // parameter. For example if a query returns 175 rows and includes `limit` - // of 50 in the API request, the response will contain `rowCount` of 175 but - // only 50 rows. - int32 row_count = 7; - - // This Analytics Property's Realtime quota state including this request. - PropertyQuota property_quota = 8; - - // Identifies what kind of resource this message is. This `kind` is always the - // fixed string "analyticsData#runRealtimeReport". Useful to distinguish - // between response types in JSON. - string kind = 9; -} diff --git a/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto b/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto deleted file mode 100644 index 7f9b1450..00000000 --- a/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto +++ /dev/null @@ -1,959 +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.analytics.data.v1beta; - -option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1beta;data"; -option java_multiple_files = true; -option java_outer_classname = "ReportingApiProto"; -option java_package = "com.google.analytics.data.v1beta"; - -// A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests -// are allowed up to 4 date ranges. -message DateRange { - // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - // be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - // accepted, and in that case, the date is inferred based on the property's - // reporting time zone. - string start_date = 1; - - // The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - // be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - // also accepted, and in that case, the date is inferred based on the - // property's reporting time zone. - string end_date = 2; - - // Assigns a name to this date range. The dimension `dateRange` is valued to - // this name in a report response. If set, cannot begin with `date_range_` or - // `RESERVED_`. If not set, date ranges are named by their zero based index in - // the request: `date_range_0`, `date_range_1`, etc. - string name = 3; -} - -// A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ..., -// endMinutesAgo. Requests are allowed up to 2 minute ranges. -message MinuteRange { - // The inclusive start minute for the query as a number of minutes before now. - // For example, `"startMinutesAgo": 29` specifies the report should include - // event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - // - // If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - // properties can request up to the last 30 minutes of event data - // (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - // the last 60 minutes of event data (`startMinutesAgo <= 59`). - optional int32 start_minutes_ago = 1; - - // The inclusive end minute for the query as a number of minutes before now. - // Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - // specifies the report should include event data from prior to 15 minutes - // ago. - // - // If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - // properties can request any minute in the last 30 minutes of event data - // (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - // minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - optional int32 end_minutes_ago = 2; - - // Assigns a name to this minute range. The dimension `dateRange` is valued to - // this name in a report response. If set, cannot begin with `date_range_` or - // `RESERVED_`. If not set, minute ranges are named by their zero based index - // in the request: `date_range_0`, `date_range_1`, etc. - string name = 3; -} - -// Dimensions are attributes of your data. For example, the dimension city -// indicates the city from which an event originates. Dimension values in report -// responses are strings; for example, city could be "Paris" or "New York". -// Requests are allowed up to 9 dimensions. -message Dimension { - // The name of the dimension. See the [API - // Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - // for the list of dimension names. - // - // If `dimensionExpression` is specified, `name` can be any string that you - // would like within the allowed character set. For example if a - // `dimensionExpression` concatenates `country` and `city`, you could call - // that dimension `countryAndCity`. Dimension names that you choose must match - // the regular expression `^[a-zA-Z0-9_]$`. - // - // Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - // `dimensionExpression`, and `pivots`. - string name = 1; - - // One dimension can be the result of an expression of multiple dimensions. - // For example, dimension "country, city": concatenate(country, ", ", city). - DimensionExpression dimension_expression = 2; -} - -// Used to express a dimension which is the result of a formula of multiple -// dimensions. Example usages: -// 1) lower_case(dimension) -// 2) concatenate(dimension1, symbol, dimension2). -message DimensionExpression { - // Used to convert a dimension value to a single case. - message CaseExpression { - // Name of a dimension. The name must refer back to a name in dimensions - // field of the request. - string dimension_name = 1; - } - - // Used to combine dimension values to a single dimension. - message ConcatenateExpression { - // Names of dimensions. The names must refer back to names in the dimensions - // field of the request. - repeated string dimension_names = 1; - - // The delimiter placed between dimension names. - // - // Delimiters are often single characters such as "|" or "," but can be - // longer strings. If a dimension value contains the delimiter, both will be - // present in response with no distinction. For example if dimension 1 value - // = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - // response will contain "US,FR,JP". - string delimiter = 2; - } - - // Specify one type of dimension expression for `DimensionExpression`. - oneof one_expression { - // Used to convert a dimension value to lower case. - CaseExpression lower_case = 4; - - // Used to convert a dimension value to upper case. - CaseExpression upper_case = 5; - - // Used to combine dimension values to a single dimension. - // For example, dimension "country, city": concatenate(country, ", ", city). - ConcatenateExpression concatenate = 6; - } -} - -// The quantitative measurements of a report. For example, the metric -// `eventCount` is the total number of events. Requests are allowed up to 10 -// metrics. -message Metric { - // The name of the metric. See the [API - // Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - // for the list of metric names. - // - // If `expression` is specified, `name` can be any string that you would like - // within the allowed character set. For example if `expression` is - // `screenPageViews/sessions`, you could call that metric's name = - // `viewsPerSession`. Metric names that you choose must match the regular - // expression `^[a-zA-Z0-9_]$`. - // - // Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - // `expression`. - string name = 1; - - // A mathematical expression for derived metrics. For example, the metric - // Event count per user is `eventCount/totalUsers`. - string expression = 2; - - // Indicates if a metric is invisible in the report response. If a metric is - // invisible, the metric will not produce a column in the response, but can be - // used in `metricFilter`, `orderBys`, or a metric `expression`. - bool invisible = 3; -} - -// To express dimension or metric filters. -// The fields in the same FilterExpression need to be either all dimensions or -// all metrics. -message FilterExpression { - // Specify one type of filter expression for `FilterExpression`. - oneof expr { - // The FilterExpressions in and_group have an AND relationship. - FilterExpressionList and_group = 1; - - // The FilterExpressions in or_group have an OR relationship. - FilterExpressionList or_group = 2; - - // The FilterExpression is NOT of not_expression. - FilterExpression not_expression = 3; - - // A primitive filter. - // All fields in filter in same FilterExpression needs to be either all - // dimensions or metrics. - Filter filter = 4; - } -} - -// A list of filter expressions. -message FilterExpressionList { - // A list of filter expressions. - repeated FilterExpression expressions = 1; -} - -// An expression to filter dimension or metric values. -message Filter { - // The filter for string - message StringFilter { - // The match type of a string filter - enum MatchType { - // Unspecified - MATCH_TYPE_UNSPECIFIED = 0; - - // Exact match of the string value. - EXACT = 1; - - // Begins with the string value. - BEGINS_WITH = 2; - - // Ends with the string value. - ENDS_WITH = 3; - - // Contains the string value. - CONTAINS = 4; - - // Full regular expression match with the string value. - FULL_REGEXP = 5; - - // Partial regular expression match with the string value. - PARTIAL_REGEXP = 6; - } - - // The match type for this filter. - MatchType match_type = 1; - - // The string value used for the matching. - string value = 2; - - // If true, the string value is case sensitive. - bool case_sensitive = 3; - } - - // The result needs to be in a list of string values. - message InListFilter { - // The list of string values. - // Must be non-empty. - repeated string values = 1; - - // If true, the string value is case sensitive. - bool case_sensitive = 2; - } - - // Filters for numeric or date values. - message NumericFilter { - // The operation applied to a numeric filter - enum Operation { - // Unspecified. - OPERATION_UNSPECIFIED = 0; - - // Equal - EQUAL = 1; - - // Less than - LESS_THAN = 2; - - // Less than or equal - LESS_THAN_OR_EQUAL = 3; - - // Greater than - GREATER_THAN = 4; - - // Greater than or equal - GREATER_THAN_OR_EQUAL = 5; - } - - // The operation type for this filter. - Operation operation = 1; - - // A numeric value or a date value. - NumericValue value = 2; - } - - // To express that the result needs to be between two numbers (inclusive). - message BetweenFilter { - // Begins with this number. - NumericValue from_value = 1; - - // Ends with this number. - NumericValue to_value = 2; - } - - // The dimension name or metric name. Must be a name defined in dimensions - // or metrics. - string field_name = 1; - - // Specify one type of filter for `Filter`. - oneof one_filter { - // Strings related filter. - StringFilter string_filter = 3; - - // A filter for in list values. - InListFilter in_list_filter = 4; - - // A filter for numeric or date values. - NumericFilter numeric_filter = 5; - - // A filter for two values. - BetweenFilter between_filter = 6; - } -} - -// The sort options. -message OrderBy { - // Sorts by metric values. - message MetricOrderBy { - // A metric name in the request to order by. - string metric_name = 1; - } - - // Sorts by dimension values. - message DimensionOrderBy { - // Rule to order the string dimension values by. - enum OrderType { - // Unspecified. - ORDER_TYPE_UNSPECIFIED = 0; - - // Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - // "b" < "z". - ALPHANUMERIC = 1; - - // Case insensitive alphanumeric sort by lower case Unicode code point. - // For example, "2" < "A" < "b" < "X" < "z". - CASE_INSENSITIVE_ALPHANUMERIC = 2; - - // Dimension values are converted to numbers before sorting. For example - // in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - // "25". Non-numeric dimension values all have equal ordering value below - // all numeric values. - NUMERIC = 3; - } - - // A dimension name in the request to order by. - string dimension_name = 1; - - // Controls the rule for dimension value ordering. - OrderType order_type = 2; - } - - // Sorts by a pivot column group. - message PivotOrderBy { - // A pair of dimension names and values. Rows with this dimension pivot pair - // are ordered by the metric's value. - // - // For example if pivots = {{"browser", "Chrome"}} and - // metric_name = "Sessions", - // then the rows will be sorted based on Sessions in Chrome. - // - // ---------|----------|----------------|----------|---------------- - // | Chrome | Chrome | Safari | Safari - // ---------|----------|----------------|----------|---------------- - // Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions - // ---------|----------|----------------|----------|---------------- - // US | 2 | 2 | 3 | 1 - // ---------|----------|----------------|----------|---------------- - // Canada | 3 | 1 | 4 | 1 - // ---------|----------|----------------|----------|---------------- - message PivotSelection { - // Must be a dimension name from the request. - string dimension_name = 1; - - // Order by only when the named dimension is this value. - string dimension_value = 2; - } - - // In the response to order by, order rows by this column. Must be a metric - // name from the request. - string metric_name = 1; - - // Used to select a dimension name and value pivot. If multiple pivot - // selections are given, the sort occurs on rows where all pivot selection - // dimension name and value pairs match the row's dimension name and value - // pair. - repeated PivotSelection pivot_selections = 2; - } - - // Specify one type of order by for `OrderBy`. - oneof one_order_by { - // Sorts results by a metric's values. - MetricOrderBy metric = 1; - - // Sorts results by a dimension's values. - DimensionOrderBy dimension = 2; - - // Sorts results by a metric's values within a pivot column group. - PivotOrderBy pivot = 3; - } - - // If true, sorts by descending order. - bool desc = 4; -} - -// Describes the visible dimension columns and rows in the report response. -message Pivot { - // Dimension names for visible columns in the report response. Including - // "dateRange" produces a date range column; for each row in the response, - // dimension values in the date range column will indicate the corresponding - // date range from the request. - repeated string field_names = 1; - - // Specifies how dimensions are ordered in the pivot. In the first Pivot, the - // OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - // Pivots, the OrderBys determine only PivotDimensionHeader ordering. - // Dimensions specified in these OrderBys must be a subset of - // Pivot.field_names. - repeated OrderBy order_bys = 2; - - // The row count of the start row. The first row is counted as row 0. - int64 offset = 3; - - // The number of unique combinations of dimension values to return in this - // pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - // single pivot requests. - // - // The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - // must not exceed 100,000. For example, a two pivot request with `limit: - // 1000` in each pivot will fail because the product is `1,000,000`. - int64 limit = 4; - - // Aggregate the metrics by dimensions in this pivot using the specified - // metric_aggregations. - repeated MetricAggregation metric_aggregations = 5; -} - -// The specification of cohorts for a cohort report. -// -// Cohort reports create a time series of user retention for the cohort. For -// example, you could select the cohort of users that were acquired in the first -// week of September and follow that cohort for the next six weeks. Selecting -// the users acquired in the first week of September cohort is specified in the -// `cohort` object. Following that cohort for the next six weeks is specified in -// the `cohortsRange` object. -// -// For examples, see [Cohort Report -// Examples](https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples). -// -// The report response could show a weekly time series where say your app has -// retained 60% of this cohort after three weeks and 25% of this cohort after -// six weeks. These two percentages can be calculated by the metric -// `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report. -message CohortSpec { - // Defines the selection criteria to group users into cohorts. - // - // Most cohort reports define only a single cohort. If multiple cohorts are - // specified, each cohort can be recognized in the report by their name. - repeated Cohort cohorts = 1; - - // Cohort reports follow cohorts over an extended reporting date range. This - // range specifies an offset duration to follow the cohorts over. - CohortsRange cohorts_range = 2; - - // Optional settings for a cohort report. - CohortReportSettings cohort_report_settings = 3; -} - -// Defines a cohort selection criteria. A cohort is a group of users who share -// a common characteristic. For example, users with the same `firstSessionDate` -// belong to the same cohort. -message Cohort { - // Assigns a name to this cohort. The dimension `cohort` is valued to this - // name in a report response. If set, cannot begin with `cohort_` or - // `RESERVED_`. If not set, cohorts are named by their zero based index - // `cohort_0`, `cohort_1`, etc. - string name = 1; - - // Dimension used by the cohort. Required and only supports - // `firstSessionDate`. - string dimension = 2; - - // The cohort selects users whose first touch date is between start date and - // end date defined in the `dateRange`. This `dateRange` does not specify the - // full date range of event data that is present in a cohort report. In a - // cohort report, this `dateRange` is extended by the granularity and offset - // present in the `cohortsRange`; event data for the extended reporting date - // range is present in a cohort report. - // - // In a cohort request, this `dateRange` is required and the `dateRanges` in - // the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - // - // This `dateRange` should generally be aligned with the cohort's granularity. - // If `CohortsRange` uses daily granularity, this `dateRange` can be a single - // day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - // aligned to a week boundary, starting at Sunday and ending Saturday. If - // `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - // a month, starting at the first and ending on the last day of the month. - DateRange date_range = 3; -} - -// Configures the extended reporting date range for a cohort report. Specifies -// an offset duration to follow the cohorts over. -message CohortsRange { - // The granularity used to interpret the `startOffset` and `endOffset` for the - // extended reporting date range for a cohort report. - enum Granularity { - // Should never be specified. - GRANULARITY_UNSPECIFIED = 0; - - // Daily granularity. Commonly used if the cohort's `dateRange` is a single - // day and the request contains `cohortNthDay`. - DAILY = 1; - - // Weekly granularity. Commonly used if the cohort's `dateRange` is a week - // in duration (starting on Sunday and ending on Saturday) and the request - // contains `cohortNthWeek`. - WEEKLY = 2; - - // Monthly granularity. Commonly used if the cohort's `dateRange` is a month - // in duration and the request contains `cohortNthMonth`. - MONTHLY = 3; - } - - // Required. The granularity used to interpret the `startOffset` and - // `endOffset` for the extended reporting date range for a cohort report. - Granularity granularity = 1; - - // `startOffset` specifies the start date of the extended reporting date range - // for a cohort report. `startOffset` is commonly set to 0 so that reports - // contain data from the acquisition of the cohort forward. - // - // If `granularity` is `DAILY`, the `startDate` of the extended reporting date - // range is `startDate` of the cohort plus `startOffset` days. - // - // If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - // date range is `startDate` of the cohort plus `startOffset * 7` days. - // - // If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - // date range is `startDate` of the cohort plus `startOffset * 30` days. - int32 start_offset = 2; - - // Required. `endOffset` specifies the end date of the extended reporting date - // range for a cohort report. `endOffset` can be any positive integer but is - // commonly set to 5 to 10 so that reports contain data on the cohort for the - // next several granularity time periods. - // - // If `granularity` is `DAILY`, the `endDate` of the extended reporting date - // range is `endDate` of the cohort plus `endOffset` days. - // - // If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - // range is `endDate` of the cohort plus `endOffset * 7` days. - // - // If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - // range is `endDate` of the cohort plus `endOffset * 30` days. - int32 end_offset = 3; -} - -// Optional settings of a cohort report. -message CohortReportSettings { - // If true, accumulates the result from first touch day to the end day. Not - // supported in `RunReportRequest`. - bool accumulate = 1; -} - -// Response's metadata carrying additional information about the report content. -message ResponseMetaData { - // The schema restrictions actively enforced in creating this report. To learn - // more, see [Access and data-restriction - // management](https://support.google.com/analytics/answer/10851388). - message SchemaRestrictionResponse { - // A metric actively restricted in creating the report. - message ActiveMetricRestriction { - // The name of the restricted metric. - optional string metric_name = 1; - - // The reason for this metric's restriction. - repeated RestrictedMetricType restricted_metric_types = 2; - } - - // All restrictions actively enforced in creating the report. For example, - // `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - // However, this active response restriction is only populated if the user's - // custom role disallows access to `REVENUE_DATA`. - repeated ActiveMetricRestriction active_metric_restrictions = 1; - } - - // If true, indicates some buckets of dimension combinations are rolled into - // "(other)" row. This can happen for high cardinality reports. - bool data_loss_from_other_row = 3; - - // Describes the schema restrictions actively enforced in creating this - // report. To learn more, see [Access and data-restriction - // management](https://support.google.com/analytics/answer/10851388). - optional SchemaRestrictionResponse schema_restriction_response = 4; - - // The currency code used in this report. Intended to be used in formatting - // currency metrics like `purchaseRevenue` for visualization. If currency_code - // was specified in the request, this response parameter will echo the request - // parameter; otherwise, this response parameter is the property's current - // currency_code. - // - // Currency codes are string encodings of currency types from the ISO 4217 - // standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - // "EUR", "JPY". To learn more, see - // https://support.google.com/analytics/answer/9796179. - optional string currency_code = 5; - - // The property's current timezone. Intended to be used to interpret - // time-based dimensions like `hour` and `minute`. Formatted as strings from - // the IANA Time Zone database (https://www.iana.org/time-zones); for example - // "America/New_York" or "Asia/Tokyo". - optional string time_zone = 6; - - // If empty reason is specified, the report is empty for this reason. - optional string empty_reason = 7; -} - -// Describes a dimension column in the report. Dimensions requested in a report -// produce column entries within rows and DimensionHeaders. However, dimensions -// used exclusively within filters or expressions do not produce columns in a -// report; correspondingly, those dimensions do not produce headers. -message DimensionHeader { - // The dimension's name. - string name = 1; -} - -// Describes a metric column in the report. Visible metrics requested in a -// report produce column entries within rows and MetricHeaders. However, -// metrics used exclusively within filters or expressions do not produce columns -// in a report; correspondingly, those metrics do not produce headers. -message MetricHeader { - // The metric's name. - string name = 1; - - // The metric's data type. - MetricType type = 2; -} - -// Dimensions' values in a single pivot. -message PivotHeader { - // The size is the same as the cardinality of the corresponding dimension - // combinations. - repeated PivotDimensionHeader pivot_dimension_headers = 1; - - // The cardinality of the pivot. The total number of rows for this pivot's - // fields regardless of how the parameters `offset` and `limit` are specified - // in the request. - int32 row_count = 2; -} - -// Summarizes dimension values from a row for this pivot. -message PivotDimensionHeader { - // Values of multiple dimensions in a pivot. - repeated DimensionValue dimension_values = 1; -} - -// Report data for each row. -// For example if RunReportRequest contains: -// -// ```none -// "dimensions": [ -// { -// "name": "eventName" -// }, -// { -// "name": "countryId" -// } -// ], -// "metrics": [ -// { -// "name": "eventCount" -// } -// ] -// ``` -// -// One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and -// 15 as the eventCount, would be: -// -// ```none -// "dimensionValues": [ -// { -// "value": "in_app_purchase" -// }, -// { -// "value": "JP" -// } -// ], -// "metricValues": [ -// { -// "value": "15" -// } -// ] -// ``` -message Row { - // List of requested dimension values. In a PivotReport, dimension_values - // are only listed for dimensions included in a pivot. - repeated DimensionValue dimension_values = 1; - - // List of requested visible metric values. - repeated MetricValue metric_values = 2; -} - -// The value of a dimension. -message DimensionValue { - // One kind of dimension value - oneof one_value { - // Value as a string if the dimension type is a string. - string value = 1; - } -} - -// The value of a metric. -message MetricValue { - // One of metric value - oneof one_value { - // Measurement value. See MetricHeader for type. - string value = 4; - } -} - -// To represent a number. -message NumericValue { - // One of a numeric value - oneof one_value { - // Integer value - int64 int64_value = 1; - - // Double value - double double_value = 2; - } -} - -// Current state of all quotas for this Analytics Property. If any quota for a -// property is exhausted, all requests to that property will return Resource -// Exhausted errors. -message PropertyQuota { - // Standard Analytics Properties can use up to 25,000 tokens per day; - // Analytics 360 Properties can use 250,000 tokens per day. Most requests - // consume fewer than 10 tokens. - QuotaStatus tokens_per_day = 1; - - // Standard Analytics Properties can use up to 5,000 tokens per hour; - // Analytics 360 Properties can use 50,000 tokens per hour. An API request - // consumes a single number of tokens, and that number is deducted from both - // the hourly and daily quotas. - QuotaStatus tokens_per_hour = 2; - - // Standard Analytics Properties can send up to 10 concurrent requests; - // Analytics 360 Properties can use up to 50 concurrent requests. - QuotaStatus concurrent_requests = 3; - - // Standard Analytics Properties and cloud project pairs can have up to 10 - // server errors per hour; Analytics 360 Properties and cloud project pairs - // can have up to 50 server errors per hour. - QuotaStatus server_errors_per_project_per_hour = 4; - - // Analytics Properties can send up to 120 requests with potentially - // thresholded dimensions per hour. In a batch request, each report request - // is individually counted for this quota if the request contains potentially - // thresholded dimensions. - QuotaStatus potentially_thresholded_requests_per_hour = 5; -} - -// Current state for a particular quota group. -message QuotaStatus { - // Quota consumed by this request. - int32 consumed = 1; - - // Quota remaining after this request. - int32 remaining = 2; -} - -// Explains a dimension. -message DimensionMetadata { - // This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - // example, `eventName`. - string api_name = 1; - - // This dimension's name within the Google Analytics user interface. For - // example, `Event name`. - string ui_name = 2; - - // Description of how this dimension is used and calculated. - string description = 3; - - // Still usable but deprecated names for this dimension. If populated, this - // dimension is available by either `apiName` or one of `deprecatedApiNames` - // for a period of time. After the deprecation period, the dimension will be - // available only by `apiName`. - repeated string deprecated_api_names = 4; - - // True if the dimension is a custom dimension for this property. - bool custom_definition = 5; - - // The display name of the category that this dimension belongs to. Similar - // dimensions and metrics are categorized together. - string category = 7; -} - -// Explains a metric. -message MetricMetadata { - // Justifications for why this metric is blocked. - enum BlockedReason { - // Will never be specified in API response. - BLOCKED_REASON_UNSPECIFIED = 0; - - // If present, your access is blocked to revenue related metrics for this - // property, and this metric is revenue related. - NO_REVENUE_METRICS = 1; - - // If present, your access is blocked to cost related metrics for this - // property, and this metric is cost related. - NO_COST_METRICS = 2; - } - - // A metric name. Useable in [Metric](#Metric)'s `name`. For example, - // `eventCount`. - string api_name = 1; - - // This metric's name within the Google Analytics user interface. For example, - // `Event count`. - string ui_name = 2; - - // Description of how this metric is used and calculated. - string description = 3; - - // Still usable but deprecated names for this metric. If populated, this - // metric is available by either `apiName` or one of `deprecatedApiNames` - // for a period of time. After the deprecation period, the metric will be - // available only by `apiName`. - repeated string deprecated_api_names = 4; - - // The type of this metric. - MetricType type = 5; - - // The mathematical expression for this derived metric. Can be used in - // [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - // are not expressions, and for non-expressions, this field is empty. - string expression = 6; - - // True if the metric is a custom metric for this property. - bool custom_definition = 7; - - // If reasons are specified, your access is blocked to this metric for this - // property. API requests from you to this property for this metric will - // succeed; however, the report will contain only zeros for this metric. API - // requests with metric filters on blocked metrics will fail. If reasons are - // empty, you have access to this metric. - // - // To learn more, see [Access and data-restriction - // management](https://support.google.com/analytics/answer/10851388). - repeated BlockedReason blocked_reasons = 8; - - // The display name of the category that this metrics belongs to. Similar - // dimensions and metrics are categorized together. - string category = 10; -} - -// The compatibility for a single dimension. -message DimensionCompatibility { - // The dimension metadata contains the API name for this compatibility - // information. The dimension metadata also contains other helpful information - // like the UI name and description. - optional DimensionMetadata dimension_metadata = 1; - - // The compatibility of this dimension. If the compatibility is COMPATIBLE, - // this dimension can be successfully added to the report. - optional Compatibility compatibility = 2; -} - -// The compatibility for a single metric. -message MetricCompatibility { - // The metric metadata contains the API name for this compatibility - // information. The metric metadata also contains other helpful information - // like the UI name and description. - optional MetricMetadata metric_metadata = 1; - - // The compatibility of this metric. If the compatibility is COMPATIBLE, - // this metric can be successfully added to the report. - optional Compatibility compatibility = 2; -} - -// Represents aggregation of metrics. -enum MetricAggregation { - // Unspecified operator. - METRIC_AGGREGATION_UNSPECIFIED = 0; - - // SUM operator. - TOTAL = 1; - - // Minimum operator. - MINIMUM = 5; - - // Maximum operator. - MAXIMUM = 6; - - // Count operator. - COUNT = 4; -} - -// A metric's value type. -enum MetricType { - // Unspecified type. - METRIC_TYPE_UNSPECIFIED = 0; - - // Integer type. - TYPE_INTEGER = 1; - - // Floating point type. - TYPE_FLOAT = 2; - - // A duration of seconds; a special floating point type. - TYPE_SECONDS = 4; - - // A duration in milliseconds; a special floating point type. - TYPE_MILLISECONDS = 5; - - // A duration in minutes; a special floating point type. - TYPE_MINUTES = 6; - - // A duration in hours; a special floating point type. - TYPE_HOURS = 7; - - // A custom metric of standard type; a special floating point type. - TYPE_STANDARD = 8; - - // An amount of money; a special floating point type. - TYPE_CURRENCY = 9; - - // A length in feet; a special floating point type. - TYPE_FEET = 10; - - // A length in miles; a special floating point type. - TYPE_MILES = 11; - - // A length in meters; a special floating point type. - TYPE_METERS = 12; - - // A length in kilometers; a special floating point type. - TYPE_KILOMETERS = 13; -} - -// Categories of data that you may be restricted from viewing on certain GA4 -// properties. -enum RestrictedMetricType { - // Unspecified type. - RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - - // Cost metrics such as `adCost`. - COST_DATA = 1; - - // Revenue metrics such as `purchaseRevenue`. - REVENUE_DATA = 2; -} - -// The compatibility types for a single dimension or metric. -enum Compatibility { - // Unspecified compatibility. - COMPATIBILITY_UNSPECIFIED = 0; - - // The dimension or metric is compatible. This dimension or metric can be - // successfully added to a report. - COMPATIBLE = 1; - - // The dimension or metric is incompatible. This dimension or metric cannot be - // successfully added to a report. - INCOMPATIBLE = 2; -} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 4eb23765..00000000 --- a/renovate.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.coveo:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.analytics:google-analytics-data", - "^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 8859aa63..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - com.google.analytics - analytics-data-install-without-bom - jar - Google Analytics Data Install Without Bom - https://github.com/googleapis/java-analytics-data - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.analytics - google-analytics-data - 0.10.2 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.2.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/pom.xml b/samples/pom.xml deleted file mode 100644 index 1f41c94b..00000000 --- a/samples/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data-samples - 0.0.1-SNAPSHOT - pom - Google Analytics Data Samples Parent - https://github.com/googleapis/java-analytics-data - - 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 - 2.8.2 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index fc5f51cf..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - 4.0.0 - com.google.analytics - analytics-data-snapshot - jar - Google Analytics Data Snapshot Samples - https://github.com/googleapis/java-analytics-data - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.analytics - google-analytics-data - 0.10.3-SNAPSHOT - - - - com.google.auth - google-auth-library-oauth2-http - 1.3.0 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.2.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index ba95b773..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - 4.0.0 - com.google.analytics - analytics-data-snippets - jar - Google Analytics Data Snippets - https://github.com/googleapis/java-analytics-data - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.analytics - google-analytics-data - 0.10.2 - - - com.google.auth - google-auth-library-oauth2-http - 1.3.0 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - diff --git a/samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java b/samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java deleted file mode 100644 index a1dcace5..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java +++ /dev/null @@ -1,106 +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. - */ - -package com.example.analytics; - -/* Google Analytics Data API sample quickstart application. - -This application demonstrates the usage of the Analytics Data API using -service account credentials from a JSON file downloaded from -the Google Cloud Console. - -Before you start the application, please review the comments starting with -"TODO(developer)" and update the code to use correct values. - -To run this sample using Maven: - cd java-analytics-data/samples/snippets - mvn compile - mvn exec:java -Dexec.mainClass="com.example.analytics.QuickstartJsonCredentialsSample" - */ - -// [START analyticsdata_json_credentials_quickstart] -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.BetaAnalyticsDataSettings; -import com.google.analytics.data.v1beta.DateRange; -import com.google.analytics.data.v1beta.Dimension; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.Row; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.auth.oauth2.GoogleCredentials; -import java.io.FileInputStream; - -public class QuickstartJsonCredentialsSample { - - public static void main(String... args) throws Exception { - /** - * TODO(developer): Replace this variable with your Google Analytics 4 property ID before - * running the sample. - */ - String propertyId = "YOUR-GA4-PROPERTY-ID"; - - /** - * TODO(developer): Replace this variable with a valid path to the credentials.json file for - * your service account downloaded from the Cloud Console. - */ - String credentialsJsonPath = "/path/to/credentials.json"; - sampleRunReport(propertyId, credentialsJsonPath); - } - - // This is an example snippet that calls the Google Analytics Data API and runs a simple report - // on the provided GA4 property id. - static void sampleRunReport(String propertyId, String credentialsJsonPath) throws Exception { - // [START analyticsdata_json_credentials_initialize] - // Explicitly use service account credentials by specifying - // the private key file. - GoogleCredentials credentials = - GoogleCredentials.fromStream(new FileInputStream(credentialsJsonPath)); - - BetaAnalyticsDataSettings betaAnalyticsDataSettings = - BetaAnalyticsDataSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(credentials)) - .build(); - - try (BetaAnalyticsDataClient analyticsData = - BetaAnalyticsDataClient.create(betaAnalyticsDataSettings)) { - // [END analyticsdata_json_credentials_initialize] - - // [START analyticsdata_json_credentials_run_report] - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("city")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges(DateRange.newBuilder().setStartDate("2020-03-31").setEndDate("today")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // [END analyticsdata_json_credentials_run_report] - - // [START analyticsdata_json_credentials_print_report] - System.out.println("Report result:"); - // Iterate through every row of the API response. - for (Row row : response.getRowsList()) { - System.out.printf( - "%s, %s%n", row.getDimensionValues(0).getValue(), row.getMetricValues(0).getValue()); - } - // [END analyticsdata_json_credentials_print_report] - } - } -} -// [END analyticsdata_json_credentials_quickstart] diff --git a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java b/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java deleted file mode 100644 index 32983df9..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.analytics; - -/* Google Analytics Data API sample quickstart application. - -This application demonstrates the usage of the Analytics Data API using service account credentials. - -Before you start the application, please review the comments starting with -"TODO(developer)" and update the code to use correct values. - -To run this sample using Maven: - cd java-analytics-data/samples/snippets - mvn compile - mvn exec:java -Dexec.mainClass="com.example.analytics.QuickstartSample" - */ - -// [START analyticsdata_quickstart] -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.DateRange; -import com.google.analytics.data.v1beta.Dimension; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.Row; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class QuickstartSample { - - public static void main(String... args) throws Exception { - /** - * TODO(developer): Replace this variable with your Google Analytics 4 property ID before - * running the sample. - */ - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReport(propertyId); - } - - // This is an example snippet that calls the Google Analytics Data API and runs a simple report - // on the provided GA4 property id. - static void sampleRunReport(String propertyId) throws Exception { - /** - * TODO(developer): Uncomment this variable and replace with your Google Analytics 4 property ID - * before running the sample. - */ - // propertyId = "YOUR-GA4-PROPERTY-ID"; - - // [START analyticsdata_initialize] - // Using a default constructor instructs the client to use the credentials - // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - // [END analyticsdata_initialize] - - // [START analyticsdata_run_report] - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("city")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges(DateRange.newBuilder().setStartDate("2020-03-31").setEndDate("today")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // [END analyticsdata_run_report] - - // [START analyticsdata_print_report] - System.out.println("Report result:"); - // Iterate through every row of the API response. - for (Row row : response.getRowsList()) { - System.out.printf( - "%s, %s%n", row.getDimensionValues(0).getValue(), row.getMetricValues(0).getValue()); - } - // [END analyticsdata_print_report] - } - } -} -// [END analyticsdata_quickstart] diff --git a/samples/snippets/src/test/java/com/example/analytics/QuickstartJsonCredentialsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/QuickstartJsonCredentialsSampleTest.java deleted file mode 100644 index 1ff2e71f..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/QuickstartJsonCredentialsSampleTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.analytics; - -import static com.google.common.truth.Truth.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for quickstart sample. */ -@RunWith(JUnit4.class) -public class QuickstartJsonCredentialsSampleTest { - - private String ga4PropertyId = - System.getProperty("analyticsdata.quickstart.ga4PropertyId", "222596558"); - - private String credentialsJsonPath = System.getenv("GOOGLE_APPLICATION_CREDENTIALS"); - - private String runSample(String ga4PropertyId) throws Exception { - PrintStream stdOut = System.out; - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(bout); - System.setOut(out); - - // Run the test using default system credentials. - QuickstartJsonCredentialsSample.sampleRunReport(ga4PropertyId, credentialsJsonPath); - - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testQuickstart() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/QuickstartSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/QuickstartSampleTest.java deleted file mode 100644 index e84f77ce..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/QuickstartSampleTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.analytics; - -import static com.google.common.truth.Truth.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for quickstart sample. */ -@RunWith(JUnit4.class) -public class QuickstartSampleTest { - - private String ga4PropertyId = - System.getProperty("analyticsdata.quickstart.ga4PropertyId", "222596558"); - - private String runSample(String ga4PropertyId) throws Exception { - PrintStream stdOut = System.out; - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(bout); - System.setOut(out); - - // Run the test using default system credentials. - QuickstartSample.sampleRunReport(ga4PropertyId); - - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testQuickstart() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index bd6fb71b..00000000 --- a/synth.metadata +++ /dev/null @@ -1,302 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-analytics-data.git", - "sha": "8b30dcd3132fd5a43955dda3f4c4aaddac2d0035" - } - }, - { - "git": { - "name": "googleapis-gen", - "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "19ed6ced80e406dd4a7e2d0870c629427309d439", - "internalRef": "377081269" - } - }, - { - "git": { - "name": "googleapis-gen", - "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "19ed6ced80e406dd4a7e2d0870c629427309d439", - "internalRef": "377081269" - } - }, - { - "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-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/gapic_metadata.json", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/package-info.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataCallableFactory.java", - "google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java", - "google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java", - "google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java", - "google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java", - "google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java", - "google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsData.java", - "google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java", - "grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java", - "grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequest.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequestOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponse.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponseOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequest.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequestOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponse.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponseOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpec.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpecOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRange.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRangeOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Entity.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EntityOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metric.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderBy.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderByOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponseOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequest.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequestOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponse.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponseOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java", - "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java", - "proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto", - "proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AnalyticsDataApiProto.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponse.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponseOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponse.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponseOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Cohort.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettings.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettingsOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpec.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpecOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRange.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRangeOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRange.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRangeOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Dimension.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpression.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpressionOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeader.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeaderOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadataOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValue.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValueOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpression.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionList.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionListOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metadata.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metric.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricAggregation.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeader.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeaderOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadataOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricType.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValue.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValueOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValue.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValueOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderBy.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderByOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Pivot.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeader.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeaderOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeader.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeaderOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuota.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuotaOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatus.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatusOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaData.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaDataOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Row.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RowOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java", - "proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java", - "proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto", - "proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.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 51397811..00000000 --- a/versions.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Format: -# module:released-version:current-version - -google-analytics-data:0.10.2:0.10.3-SNAPSHOT -grpc-google-analytics-data-v1beta:0.10.2:0.10.3-SNAPSHOT -proto-google-analytics-data-v1beta:0.10.2:0.10.3-SNAPSHOT